markdown-wasm icon indicating copy to clipboard operation
markdown-wasm copied to clipboard

Option to disable anchor in title block

Open ManUtopiK opened this issue 4 years ago • 2 comments

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.

ManUtopiK avatar Oct 18 '21 08:10 ManUtopiK

yes, i hope too

I hope it can be solved

lwq057 avatar Mar 20 '22 18:03 lwq057

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

monochromer avatar Dec 28 '23 08:12 monochromer