-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Touching italic/bold doesn't render right (v1.1.1 regression) #1754
Comments
Thanks for reporting this issue! It looks like it was fixed in v0.6.0 and broke in v1.1.1 🤔 This was mentioned in #1353 years ago but I'll elevate this to L1 since it was working for a couple years and regression in the latest release 👍 Would you like to create a PR to fix it? 🙂 |
I suspect this can be fixed in this line by adding an asterisk to the "punctuation" group. Haven't tested it, but probably the place to look. Line 182 in a41d8f9
Any PR should include tests for all valid permutations of this since evidently this has been fixed and broken over the years without being detected. i.e.: (all of these seem to generate valid tags on both sides within github)
|
Found a few lines later: Lines 191 to 192 in a41d8f9
|
I can take a look at it this weekend. Thanks for the test cases @calculuschild. |
I started PR #1755 to fix this with @calculuschild's suggestion. There are a few other cases I think we should test that are still failing such as Or we could just consider these unspecified behavior. I'll have to look closer at the spec to see if these cases should pass. |
I don't see this case exactly in the GFM spec; the closest being Example #424. There's the comment below Test #420 that says an emphasis delimiter can't exist if the size of the delimiter runs containing the opening and closing delimiters sums to a multiple of 3, so in this case:
I guess the best answer is to look at Babelmark which shows literally every implementation has a different answer. Commonmark is probably the "most accurate" though, and they get around the multiples of 3 rule by excluding the final underscore as per Example #467. Markdown 1.1.1 is probably the second best out of that list though :). |
I would like to get marked to follow common mark on all of these examples.
|
#1755 already passes all of the tests in #1754 (comment) but to pass the rest might require a change in the tokenizer. |
🎉 This issue has been resolved in version 1.1.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
When italic and bold are touching, italic is ignored:
This was working with v1.1.0 and is not working with v1.1.1.
The text was updated successfully, but these errors were encountered: