yzhang-gh / vscode-markdown

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

New slugify mode: Bitbucket #870

Open alexb148 opened 3 years ago

alexb148 commented 3 years ago

Proposal

The setting markdown.extension.toc.slugifyMode includes table of contents formatting options for Github, Azure, Gitlab and a few others, but not Bitbucket.

Bitbucket links are almost identical to Github links, but are simply prefixed with markdown-header-

i.e. they are formatted like so: #markdown-header-1-introduction

Alternatively, just the ability to specify a custom prefix to ToC slugs would solve the issue.

Of course, the ability to specify our own custom format would be amazing, and would solve all cases!

Thanks

yzhang-gh commented 3 years ago

I guess you are talking about Bitbucket Cloud? Please check out the dev build. (duplicate of #861)

decodering commented 3 years ago

Yes please to this! I have to manually prepend the "markdown-header-" tag each time before being able to commit changes to the readme at work. Any chance this can be a feature in the production build (i.e. as an option in the slugify settings dropdown)?

yzhang-gh commented 3 years ago

Thanks. It will be shipped with the next release, and I'm sure it won't take a month 😅.