borkdude/quickblog

Add `:heading-anchors true` to the markdown compilation

elken opened this issue · 0 comments

As noted here:

Specifying :heading-anchors will create anchors for the heading tags, eg:

(markdown/md-to-html-string "###foo bar BAz" :heading-anchors true)
<h3 id=\"foo&#95;bar&#95;baz\">foo bar BAz</h3>

Which allows for headings to be navigated to and, with some javascript, linked to (if desired this can also be added to the linked PR)