Skip to content

fix(preview): use GitHub-style heading slugs#749

Open
qiujiandong wants to merge 1 commit into
iamcco:masterfrom
qiujiandong:master
Open

fix(preview): use GitHub-style heading slugs#749
qiujiandong wants to merge 1 commit into
iamcco:masterfrom
qiujiandong:master

Conversation

@qiujiandong

Copy link
Copy Markdown
  • switch markdown heading and TOC anchors to github-slugger
  • align TOC duplicate suffixes with markdown-it-anchor numbering

Fixes: #191

similar pull request, but may out of date: #575

I'v tested with node v24.16.0, and it worked.

NODE_OPTIONS=--openssl-legacy-provider npx yarn install
NODE_OPTIONS=--openssl-legacy-provider npx yarn build

- switch markdown heading and TOC anchors to github-slugger
- align TOC duplicate suffixes with markdown-it-anchor numbering

Signed-off-by: Jiandong Qiu <qiujiandong@nucleisys.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Anchor links containing special characters not being stripped

1 participant