SublimeWiki
SublimeWiki copied to clipboard
Italics not correctly recognized at the beginning or end of a line
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.
Pulled in your recommended regex and committed the change. Thank you!