SublimeWiki icon indicating copy to clipboard operation
SublimeWiki copied to clipboard

Italics not correctly recognized at the beginning or end of a line

Open natet opened this issue 13 years ago • 1 comments

You've already mentioned this as an issue. I didn't want to clone your repo, then submit a pull request for a one line change, so here's my solution to your regex issue.

\b(|_)(**|[^])+?(*|)\b

I added a match in there for a double star (**) for another issue that kind of bothered me. If you have a bold section inside an italicized section, only the bold would get highlighted. I still don't like this solution because now the italics overpower the bold. I also haven't looked into changing the bold regex to fix the flip side of this case (italics inside of bold.

natet avatar Dec 06 '12 23:12 natet

Pulled in your recommended regex and committed the change. Thank you!

PogiNate avatar Dec 11 '12 02:12 PogiNate