Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested emphasis not rendered correctly #210

Open
lukaszkalnik opened this issue Oct 27, 2016 · 0 comments
Open

Nested emphasis not rendered correctly #210

lukaszkalnik opened this issue Oct 27, 2016 · 0 comments

Comments

@lukaszkalnik
Copy link

lukaszkalnik commented Oct 27, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant