yzhang-gh / vscode-markdown

Markdown All in One
https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one
MIT License
2.94k stars 326 forks source link

ToC: Slugify Mode: Gerrit #1334

Open 7heDuk3 opened 1 year ago

7heDuk3 commented 1 year ago

Proposal

Add Slugify Mode for Gerrit, because the ToC heading links are different for Gerrit. So, the current modes doesn't work in Gerrit

The heading 7.3.2. This is a Heading

has the following link in Gerrit

7_3_2_this-is-a-heading

yzhang-gh commented 1 year ago

It could be better if there is a documentation about how Gerrit converts the headings. Otherwise it would be difficult to "guess" how it deals with all the corner cases (emoji, HTML tags, CJK characters etc.)