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

Bold formatting in single line not properly parsed. #1306

Closed
cusalvi opened this issue Jul 6, 2018 · 3 comments
Closed

Bold formatting in single line not properly parsed. #1306

cusalvi opened this issue Jul 6, 2018 · 3 comments
Labels
category: inline elements L1 - broken Valid usage causes incorrect output OR a crash AND there is no known workaround for the issue

Comments

@cusalvi
Copy link

cusalvi commented Jul 6, 2018

Describe the bug
In marked demo page, with default github flavoured markdown. Bold formatting in single line not properly parsed.
To Reproduce
Steps to reproduce the behavior:
Here is recording of bug :
Bug Recording

I used this :
Marked Demo

Expected behavior
Input : "First letter bold",
Expected output : Only F, l and b should be bold in above sentence.
Actual output: "F*irst *letter bold",

@UziTech UziTech added L1 - broken Valid usage causes incorrect output OR a crash AND there is no known workaround for the issue category: inline elements labels Jul 6, 2018
@UziTech
Copy link
Member

UziTech commented Jul 6, 2018

your marked demo just points to the demo page without the code

here is the actual Marked Demo

here is the CommonMark Demo

@barrywoolgar
Copy link
Contributor

I ran into this too, so here's a little more info from my testing:

The bug becomes apparent with any wrapped single character followed by another instance of the same markup (regardless of how many characters are wrapped). The bug will repeat if multiple pairs of markup occur in the same line, starting with the first wrapped single character encountered.

Examples:

*a* b *cd* d 

*a* b *cd* d *e* f *g* h

*ad* b *c* d *e* f *g* h

As demonstrated, this also applies to italics and presumably any other markup processed in the same manner. I hope this helps!

@barrywoolgar
Copy link
Contributor

This may be the same problem as #1297

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: inline elements L1 - broken Valid usage causes incorrect output OR a crash AND there is no known workaround for the issue
Projects
None yet
Development

No branches or pull requests

3 participants