macteo / Marklight

Markdown syntax highlighter for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

anchorPattern matches inner parens pairs

DivineDominion opened this issue · comments

Just noticed that anchorPattern is seemingly supposed to match [title][anchor]-style links while anchorInlinePattern matches [title](http://example.com)-style links.

Still, anchorPattern uses parenRegex to match round parens on its inside.

Thinking about it, I would simply remove that part. Was there an edge case you wanted to handle with that code, @macteo? If so, I'll write tests for that case to make sure that no refactoring breaks the existing stuff.

It can be definitely removed as far as I understand!