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

Ability to anchor to headers #80

Open
psychobunny opened this issue Sep 9, 2016 · 4 comments
Open

Ability to anchor to headers #80

psychobunny opened this issue Sep 9, 2016 · 4 comments
Assignees

Comments

@psychobunny
Copy link
Collaborator

psychobunny commented Sep 9, 2016

http://stackoverflow.com/questions/6695439/how-to-link-to-a-named-anchor-in-multimarkdown

So IMO everytime somebody does something like

## This is a header

It should generate a link such as this, using something similar to slugify:

<h2><a name="this-is-a-header"></a>This is a header

This way people can create for example a table of contents on a long post.

@psychobunny psychobunny self-assigned this Sep 9, 2016
@pitaj
Copy link
Collaborator

pitaj commented Sep 22, 2016

Just gonna leave this here:
https://github.com/jonschlinkert/markdown-toc

Oh, and commonmark is cool, too:
https://www.npmjs.com/package/commonmark

@abhinov2
Copy link

How and where to add fa fa icon in markdown header.
there is fa fa icon of $ through which inline math is coming on composer , where it has been done ,
Guide me through.

@julianlam
Copy link
Member

@abhinov2 No. Stop posting comments to random issues. Use the forum instead: https://community.nodebb.org

@julianlam
Copy link
Member

@psychobunny @pitaj Header anchors were removed from markdown-it for... reasons. I can't really recall right now.

Jon Schlinker's plugin does support it but markdown-it is a hard fork away, so we stick with it.

It is available as a plugin however: https://www.npmjs.com/package/markdown-it-anchor, potentially could add it to the markdown plugin.

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

No branches or pull requests

4 participants