Closed mjaquiery closed 5 years ago
Which tool does you use to generate from Markdown to HTML?
Currently, the TOC follows GitHub markdown rendering, /
is removed when generating anchor ID.
I think it’s this: https://atom.io/packages/markdown-to-html If it’s the fault of the interpreter then sorry for bothering you! Matt
From: Zhuochun notifications@github.com Sent: 29 March 2019 15:27 To: zhuochun/md-writer md-writer@noreply.github.com Cc: Matt Jaquiery matt.jaquiery@psy.ox.ac.uk; Author author@noreply.github.com Subject: Re: [zhuochun/md-writer] Slash (/) in ToC (#281)
Which tool does you use to generate from Markdown to HTML?
Currently, the TOC follows GitHub markdown rendering, / is removed when generating anchor ID.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/zhuochun/md-writer/issues/281#issuecomment-478039997, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcVOh-VV45uwvqKVTZMa7fRDZf_d0BTVks5vbjDHgaJpZM4cQezQ.
Cross checked on https://stackedit.io/app , slash is removed in anchor generation.
Thanks for the report.
ToC links containing / character are broken When using Insert/Update Table of Contents the links created do not work where there is a / in the heading name. This is because the ToC truncates / to an empty string, while the code responsible for assigning ids to headings replaces / with -.
To Reproduce Steps to reproduce the behavior:
Expected behavior The link should scroll the page to the appropriate header.