Skip to content

Full-width punctuation before the end of emphasis breaks the emphasis #490

@ptmkenny

Description

@ptmkenny

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:

full_width_punction_markdown_errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionGeneral questions about the project or usagespec complianceIssues or question about compliance with the CommonMark or GFM specs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions