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

Incorrect anchor link generated when there is a url link in the header #18

Open
fresheneesz opened this issue Feb 26, 2015 · 1 comment

Comments

@fresheneesz
Copy link

For the header:

#### Instance properties inherited from [`EventEmitter`](http://nodejs.org/api/events.html)

doctoc is generating:

[Instance properties inherited from [`EventEmitter`](http://nodejs.org/api/events.html)](#instance-properties-inherited-from-eventemitterhttpnodejsorgapieventshtml)

Which doesn't link to the header (tho it does link to EventEmitter)

Related issue: thlorenz/doctoc#57

@thlorenz
Copy link
Owner

thlorenz commented Apr 7, 2015

We need to ignore [ and ] from links it seems.
Could you please confirm and provide a PR with a fix?

Thanks.

mcornella added a commit to mcornella/anchor-markdown-header that referenced this issue Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants