extensions/markdown-language-features/src/tableOfContentsProvider.ts/TableOfContentsProvider/getHeaderText
class TableOfContentsProvider:	private static getHeaderText(header: string): string {
		return header.replace(/^\s*#+\s*(.*?)\s*#*$/, (_, word) => word.trim());
	}