Emphasis immediately followed by strong with non alpha numeric character causes strong to not render #148

Closed
opened 2026-01-29 14:28:42 +00:00 by claunia · 3 comments
Owner

Originally created by @topherdavis on GitHub (Oct 31, 2017).

Input:

*Internet***:** WiFi

Expected output:

<em>Internet</em><strong>:</strong> WiFi

Actual output:

<em>Internet</em>**:** WiFi

Originally created by @topherdavis on GitHub (Oct 31, 2017). Input: `*Internet***:** WiFi` Expected output: `<em>Internet</em><strong>:</strong> WiFi` Actual output: `<em>Internet</em>**:** WiFi`
claunia added the invalid label 2026-01-29 14:28:42 +00:00
Author
Owner

@xoofx commented on GitHub (Oct 31, 2017):

I don't think this is a problem with Markdig. but it is part of the CommonMark specs. They changed recently the emphasis rules. As you can check on babelmark, all CommonMark compliant parsers are reporting the same output.

@xoofx commented on GitHub (Oct 31, 2017): I don't think this is a problem with Markdig. but it is part of the CommonMark specs. They changed recently the emphasis rules. As you can check on [babelmark](https://babelmark.github.io/?text=*Internet***%3A**+WiFi), all CommonMark compliant parsers are reporting the same output.
Author
Owner

@xoofx commented on GitHub (Oct 31, 2017):

You can check the specs It is quite difficult to dig into this. Feel free to bring this discussion to https://talk.commonmark.org/ if you have a more detailed question

@xoofx commented on GitHub (Oct 31, 2017): You can check the [specs](http://spec.commonmark.org/0.28/#emphasis-and-strong-emphasis) It is quite difficult to dig into this. Feel free to bring this discussion to https://talk.commonmark.org/ if you have a more detailed question
Author
Owner

@topherdavis commented on GitHub (Oct 31, 2017):

I had reviewed the spec prior to submitting, but I must have misunderstood it. I suppose it would fall under this example?

http://spec.commonmark.org/0.28/#example-333

I'll work around this then.

I'm having trouble finding where *Internet* **:** WiFi with a space is specified?

Thanks!

@topherdavis commented on GitHub (Oct 31, 2017): I had reviewed the spec prior to submitting, but I must have misunderstood it. I suppose it would fall under this example? http://spec.commonmark.org/0.28/#example-333 I'll work around this then. I'm having trouble finding where `*Internet* **:** WiFi` with a space is specified? Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#148