-
-
Notifications
You must be signed in to change notification settings - Fork 210
Full-width punctuation before the end of emphasis breaks the emphasis #490
Copy link
Copy link
Closed
Labels
questionGeneral questions about the project or usageGeneral questions about the project or usagespec complianceIssues or question about compliance with the CommonMark or GFM specsIssues or question about compliance with the CommonMark or GFM specs
Description
When I use emphasis (bold or italics) with Japanese full-width punctuation, if the punctuation comes immediately before the end of the emphasis, the parser ignores it.
CommonMark 1.4.3
What should happen: the bold/italics should be processed just like it is for English punctuation.
Example characters that cause this issue:
。!?、
Input:
**テスト。**テスト
**テスト**テスト
。**。テスト**テスト
。**テスト。**テスト
**テスト**。テスト
**テスト**テスト。
**テスト、**テスト
**テスト**テスト
、**、テスト**テスト
、**テスト、**テスト
**テスト**、テスト
**テスト**テスト、
**テスト。**テスト
**テスト**テスト
!**!テスト**テスト
!**テスト!**テスト
**テスト**!テスト
**テスト**テスト!
**テスト?**テスト
**テスト**テスト
?**?テスト**テスト
?**テスト?**テスト
**テスト**?テスト
**テスト**テスト?
Here's a screenshot of the output:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionGeneral questions about the project or usageGeneral questions about the project or usagespec complianceIssues or question about compliance with the CommonMark or GFM specsIssues or question about compliance with the CommonMark or GFM specs