BNETDocs/bnetdocs-web

Markdown Heading elements should have anchors

carlbennett opened this issue · 1 comments

Currently, the Parsedown module (which parses markdown into html) does not generate anchors with markdown headings.

The expected behavior is to put an anchor with a name that can be referenced in the browser's url/address bar.

For the input:

# test test

The expected output would be:

<h1><a name="test-test">test test</a></h1>

Or something similar to that effect. The key importance here is the anchors are dynamically generated, so that the user does not have to invent all of the anchors themselves while documenting something into the site.

Original request from Discord:
image