Skip to content

Bold/Strong text not parsed correctly when ending with punctuation followed by CJK characters #454

@Red-Asuka

Description

@Red-Asuka

Description

Bold syntax (**text**) fails to render when:

  1. The bold text ends with a punctuation mark
  2. Immediately followed by a non-space character

Reproduction

https://stackblitz.com/edit/github-ezruxrr6?file=app%2Fapp.vue

Test Cases

**文字:**后续    <!-- ❌ Fails -->
**文字:** 后续   <!-- ✅ Works (space after **) -->
**文字**:后续    <!-- ✅ Works (punctuation outside **) -->
**English:**next  <!-- ❌ Fails -->
**English:** next <!-- ✅ Works -->

Affected Punctuation

Chinese: "
English: : ! ? . , ) "

Workaround

Add a space after the closing **:

**标题:** 内容

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions