Skip to content

Commit a10bdfb

Browse files
authored
Allow underscores in rendered md headers (microsoft#161149)
Follow up from microsoft/vscode-markdown-languageservice#49
1 parent 4c9c3f6 commit a10bdfb

File tree

1 file changed

+1
-1
lines changed
  • extensions/markdown-language-features/src

1 file changed

+1
-1
lines changed

extensions/markdown-language-features/src/slugify.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const githubSlugifier: Slugifier = new class implements Slugifier {
2424
.toLowerCase()
2525
.replace(/\s+/g, '-') // Replace whitespace with -
2626
// allow-any-unicode-next-line
27-
.replace(/[\]\[\!\/\'\"\#\$\%\&\(\)\*\+\,\.\/\:\;\<\=\>\?\@\\\^\_\{\|\}\~\`·ˉ¨]/g, '') // Remove known punctuators
27+
.replace(/[\]\[\!\/\'\"\#\$\%\&\(\)\*\+\,\.\/\:\;\<\=\>\?\@\\\^\{\|\}\~\`·ˉ¨]/g, '') // Remove known punctuators
2828
.replace(/^\-+/, '') // Remove leading -
2929
.replace(/\-+$/, '') // Remove trailing -
3030
);

0 commit comments

Comments
 (0)