medfreeman / markdown-it-toc-and-anchor

markdown-it plugin to add a toc and anchor links in headings
MIT License
60 stars 35 forks source link

[feature request] anchor link like GitHub #3

Closed tylerlong closed 8 years ago

tylerlong commented 8 years ago

Example:

<a id="user-content-indentation" class="anchor" href="#indentation" aria-hidden="true">
    <span class="octicon octicon-link"></span>
</a>

In order to support above, need to set anchorLinkSymbol to <span class="octicon octicon-link"></span>. But unfortunately it is escaped.

I will take a look and see if I can provide a PR.

tylerlong commented 8 years ago

Fixed in PR https://github.com/MoOx/markdown-it-toc-and-anchor/pull/6

MoOx commented 8 years ago

Closed by #6