developit / snarkdown

:smirk_cat: A snarky 1kb Markdown parser written in JavaScript
http://jsfiddle.net/developit/828w6t1x/
MIT License
2.28k stars 110 forks source link

in inline html, attribute values are incorrectly parsed as markdown #98

Open modernserf opened 3 years ago

modernserf commented 3 years ago

Test case:

snarkdown(`<a href="/foo_bar_baz.html">link</a>`)

JSFiddle link

expected result:

<a href="/foo_bar_baz.html">link</a>

actual result:

<a href="/foo<em>bar</em>baz.html">link</a>
nikku commented 3 years ago

Should be adressed via https://github.com/developit/snarkdown/pull/99.

alexxlagutin commented 2 years ago

Is there a chance that this fix will be added to npm?

jdolderer commented 2 years ago

It'd be great if this fix would make it to npm!

nikku commented 2 years ago

Fixed, among other things in @bpmn-io/snarkdown.