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