Emoji (character or code) in heading causes broken TOC link #98
Labels
Area: Link
(Reserved) Markdown link processing, URI recognition, slugification.
Area: Table of contents
Pertaining to table of contents (TOC generation and detection, related heading operations).
Issue: Bug
Res: Fixed
Fix is checked in, but it might be a few weeks until a release.
When adding emoji in a Header the generated link in TOC is broken.
It seems that (in the case of the warning emoji) there is extra code %E2%9A%A0 and if the "shortcode" is used it add an extra "warning" at the end of link
The link is correct inside Visual Studio itself, but the visual studio preview and on gitlab the link is broken
To fix the link (in this particular case (with warning emoji)) we need to manually disable the "markdown.extension.toc.updateOnSave"
and remove the extra code %E2%9A%A0 or remove the warning (in case of "shortcode") in the generated toc link
Add a Header with the Warning Emoji and generate TOC
--> It doesn't work when generated
--> It works when
Best
The text was updated successfully, but these errors were encountered: