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 and italic #1424

Closed
novito opened this issue Feb 19, 2019 · 3 comments
Closed

Bold and italic #1424

novito opened this issue Feb 19, 2019 · 3 comments
Labels
category: inline elements L2 - annoying Similar to L1 - broken but there is a known workaround available for the issue

Comments

@novito
Copy link

novito commented Feb 19, 2019

Describe the bug
When combining bold and italics, marked is not properly displaying the markdown.

To Reproduce

Reproducible steps by example:

  1. Marked Demo Wrong output
  2. CommonMark Demo Correct output

Expected behavior
Problem: As you can see, the marked demo doesn't output properly the bold and italics, in comparison to the CommonMark Demo.
Expected behavior: The marked output should be the same than the CommonMark.

@UziTech UziTech added L2 - annoying Similar to L1 - broken but there is a known workaround available for the issue category: inline elements labels Feb 19, 2019
@UziTech
Copy link
Member

UziTech commented Feb 19, 2019

A work around would be to use the spaces correctly

**hello** _**how**_ **are you**

@novito
Copy link
Author

novito commented Feb 19, 2019

@UziTech yep. Unfortunately the RTE I'm using seems to be outputting the spaces in that other way. It's not technically incorrect right? Should marked be able to know parse it similarly to what CommonMark is doing it? Happy to look into the code to put the fix in place if you want to point me where I should be looking at.

@UziTech
Copy link
Member

UziTech commented Feb 19, 2019

Yes it is a bug. PRs are always welcome.

Closing this as a duplicate of #1353

@UziTech UziTech closed this as completed Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: inline elements L2 - annoying Similar to L1 - broken but there is a known workaround available for the issue
Projects
None yet
Development

No branches or pull requests

2 participants