I ran into problems when trying to parse nested emphasis, e.g. like this:
Bold text bold italic text
The formatting broke after the first single asterisk until the end of paragraph.
So I have written a small utility method to linearize the nested asterisks in source Markdown before I pass it on to the Bypass lib for parsing. It changes the above Markdown like this:
I ran into problems when trying to parse nested emphasis, e.g. like this:
Bold text bold italic text
The formatting broke after the first single asterisk until the end of paragraph.
So I have written a small utility method to linearize the nested asterisks in source Markdown before I pass it on to the Bypass lib for parsing. It changes the above Markdown like this:
Bold text bold italic text
Maybe someone will find it useful, I have published it as a gist on my profile: https://gist.github.com/lukaszkalnik/d60471385877e7684c402ec5400dd94c