thlorenz / doctoc

📜 Generates table of contents for markdown files inside local git repository. Links are compatible with anchors generated by github or other sites.
https://www.npmjs.com/package/doctoc
MIT License
4.26k stars 479 forks source link

add bitbucket server mode #174

Open dstandish opened 5 years ago

dstandish commented 5 years ago

with bitbucket server, you have to add anchor tags e.g. <a name='this-heading'></a> for # This heading

zhongxiao37 commented 2 years ago

I made a change in https://github.com/zhongxiao37/doctoc/commit/6d94c0d5543e49807b8c622b511ea6ef3f80aa18 and it worked in my local.

Greg7000 commented 2 years ago

To work on bitbucket server, TOC must generate anchors for each title. I can't have working links in bitbucket server.

See https://github.com/yzhang-gh/vscode-markdown/issues/703 for more info on this.