rsms / markdown-wasm

Very fast Markdown parser and HTML generator implemented in WebAssembly, based on md4c
https://rsms.me/markdown-wasm/
MIT License
1.51k stars 62 forks source link

Option to disable anchor in title block #22

Open ManUtopiK opened 2 years ago

ManUtopiK commented 2 years ago

Hi! Thanks for this library. It's really super fast!

I've some issues when I send the html output to a wysiwyg editor caused by the anchor link added in each title. Let's say there is a title: # h1 The output is: <h1><a id="h1" class="anchor" aria-hidden="true" href="#h1"></a>h1</h1>

It's a good idea to add an anchor, but that doesn't play well with some wysiwyg editor like prosemiror. Currently, I manually remove this anchor, but it would be nice to have an option to disable this feature.

lwq057 commented 2 years ago

yes, i hope too

I hope it can be solved

monochromer commented 6 months ago

+ 1 for this feature. I would like to use custom post processing for adding anchors