yogthos / markdown-clj

Markdown parser in Clojure
Eclipse Public License 1.0
540 stars 120 forks source link

Handle Hugo style anchors in heading text #186

Closed vedang closed 2 years ago

vedang commented 2 years ago

The static site generator Hugo allows the following ways of defining heading anchors in Markdown:^1

When the Markdown already has these anchors built in, they are not handled by markdown-clj currently.

This commit adds handling for this style of custom anchor definition when making headings.

Testing:

yogthos commented 2 years ago

Thanks, just pushed out 1.11.2 with both PRs to Clojars.