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

add slug prefix #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add slug prefix #91

wants to merge 1 commit into from

Conversation

mgor
Copy link

@mgor mgor commented Jul 3, 2017

I have vim-plugin that uses markdown-toc to generate table of contents that I have been using for markdown files in github projects. Now however, I'm working on a project that is hosted on bitbucket. The markdown "engine" in bitbucket adds markdown-header- to the generated slugs in markdown documents, due to this the links in markdown-toc generated table of content does not work.

Since cli.json didn't have any support for options, and that there was only a small part of utils.slugify that needed modification, I added a new option and support for that option in cli.json:

  • new option for adding prefixes to generated slugs.
  • added support in cli.js
  • added test for slug prefixes.

new option for adding prefixes to generated slugs.
added support in cli.js to be able todo this from
command line.
added test for slug prefixes.
@chrillep
Copy link

chrillep commented Jul 6, 2018

any update on this?

@slavaaaaaaaaaa
Copy link

slavaaaaaaaaaa commented Nov 15, 2018

This would definitely be useful.

Bitbucket is hell.

slavaaaaaaaaaa added a commit to slavaaaaaaaaaa/markdown-toc that referenced this pull request Nov 15, 2018
slavaaaaaaaaaa added a commit to slavaaaaaaaaaa/markdown-toc that referenced this pull request Nov 15, 2018
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.

3 participants