Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New slugify mode: Bitbucket #870

Open
alexb148 opened this issue Dec 17, 2020 · 3 comments
Open

New slugify mode: Bitbucket #870

alexb148 opened this issue Dec 17, 2020 · 3 comments
Labels
Area: Link (Reserved) Markdown link processing, URI recognition, slugification. Area: Table of contents Pertaining to table of contents (TOC generation and detection, related heading operations). Res: Duplicate This issue or pull request already exists.

Comments

@alexb148
Copy link

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
Copy link
Owner

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

@yzhang-gh yzhang-gh added the Res: Duplicate This issue or pull request already exists. label Dec 17, 2020
@decodering
Copy link

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
Copy link
Owner

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

@yzhang-gh yzhang-gh added the Area: Table of contents Pertaining to table of contents (TOC generation and detection, related heading operations). label Feb 11, 2021
@Lemmingh Lemmingh added the Area: Link (Reserved) Markdown link processing, URI recognition, slugification. label Aug 25, 2021
@Lemmingh Lemmingh changed the title Add table of contents "slugify mode" option for Bitbucket New slugify mode: Bitbucket Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Link (Reserved) Markdown link processing, URI recognition, slugification. Area: Table of contents Pertaining to table of contents (TOC generation and detection, related heading operations). Res: Duplicate This issue or pull request already exists.
Projects
None yet
Development

No branches or pull requests

4 participants