nodebb-plugin-markdown icon indicating copy to clipboard operation
nodebb-plugin-markdown copied to clipboard

Ability to anchor to headers

Open psychobunny opened this issue 8 years ago • 4 comments

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 avatar Sep 09 '16 03:09 psychobunny

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

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

pitaj avatar Sep 22 '16 03:09 pitaj

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.

abhinov2 avatar Jul 25 '17 16:07 abhinov2

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

julianlam avatar Jul 25 '17 17:07 julianlam

@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.

julianlam avatar Oct 31 '17 16:10 julianlam