macteo / Marklight

Markdown syntax highlighter for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Difference between strict and non-strict bold and italic

DivineDominion opened this issue · comments

There's a strict bold pattern matched first, then a non-strict applied afterwards. Can you explain why? (I'm considering writing tests for this.)

It makes sense to have multiple passes when you convert the string to HTML and some non-strict bold emphasis is left over in the end, but in this case it is probably redundant. I don't know for sure, though, until I tinkered with this some more.

Unfortunately I cannot explain it: I've taken the regexes from Markingbird.