Closed vedang closed 2 years ago
The static site generator Hugo allows the following ways of defining heading anchors in Markdown:^1
## Heading text {#heading-text-anchor}
## Heading text {id=heading-text-anchor}
When the Markdown already has these anchors built in, they are not handled by markdown-clj currently.
markdown-clj
This commit adds handling for this style of custom anchor definition when making headings.
Testing:
clojure -M:test
Thanks, just pushed out 1.11.2 with both PRs to Clojars.
1.11.2
The static site generator Hugo allows the following ways of defining heading anchors in Markdown:^1
## Heading text {#heading-text-anchor}
## Heading text {id=heading-text-anchor}
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:
clojure -M:test
all tests passed