ocaml / omd

extensible Markdown library and tool in "pure OCaml"
ISC License
156 stars 45 forks source link

Fix spec 519. Reprocess inlines in case a label turns out to not be for a link #261

Closed sonologico closed 2 years ago

sonologico commented 2 years ago

I'll double check if my intuition is correct, but this fixes the test.

What was happening is that we would process the inline content of the (would be) label and use the results even if it didn't turn out to be a label. However, because one * was between brackets and the other * was outside, they were never matched and therefore treated as text.