kpym / gm

Cli tool converting Markdown to HTML. This tool is a thin wrapper around the github.com/yuin/goldmark library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to set a custom header ID

scfarley opened this issue · comments

Prior to commit a8616f1, setting a custom header ID was possible.

Example:

# Testing {#atag}

Prior output:

...
<h1 id="atag">Testing</h1>
...

Current output:

...
<h1 id="testing-atag">Testing {#atag}</h1>
...

Unrelated to this issue, but at https://github.com/kpym/gm/blob/main/gm_parameters.go#L29. version is missing an n at the end of the header.

I switched to github.com/mdigger/goldmark-attributes in the hope that attribute tags will be handled better. I'll revert to the previous situation and try to find a good solution later.

Thanks for the typo : I'll fix it.