docsifyjs / docsify

🃏 A magical documentation site generator.
https://docsify.js.org
MIT License
27.64k stars 5.67k forks source link

header link in github flavored markdown mode. #1006

Open computerphilosopher opened 4 years ago

computerphilosopher commented 4 years ago

Bug Report

Steps to reproduce

set 'gfm' attribute to true and make a header link that has a hyphen('-') in it.

What is current behaviour

I have to write in this way

# link to  'part1 - my title'   
[my header link](part1-my-title)

What is the expected behaviour

but when I make header link in github, I have to write in this way.

# link to  'part1 - my title'   
[my header link](part1---my-title)

I think link text should be same as github because I set gfm mode to true.

I reported a issue to markedjs first.

they said new release of docsify could fix this issue.

markedjs was updated in version 4.10.2 but nothing changed.

so I think it is docsify's issue.

Other relevant information

trusktr commented 4 years ago

We'll need to investigate this.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

nawed2611 commented 2 years ago

Hey! Can I work on this?