bnetdocs-web icon indicating copy to clipboard operation
bnetdocs-web copied to clipboard

Markdown Heading elements should have anchors

Open carlbennett opened this issue 4 years ago • 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.

carlbennett avatar Aug 01 '21 20:08 carlbennett

Original request from Discord: image

carlbennett avatar Aug 01 '21 20:08 carlbennett