Skip to content

Trailing asterisk (*) added after bold text ending in a period inside a list item #276

Description

@PurpleTape

Environment

  • Comark Version: 0.5.0
  • Framework: Vue

Comark Version

0.5.0

Reproduction

  1. Open the playground: https://comark.dev/play/editor?example=all-features
  2. Clear the editor and paste the markdown below
  3. Observe the rendered output — a stray * appears at the end

Input to paste:

*   **Preheat the oven:** Set the temperature to 200 degrees.

Description

When a list item's content ends with bold text (**text**) immediately followed by a colon-separated sentence ending in a period, comark appends an extra * character right after the closing punctuation.

Input

​```md

  • Preheat the oven: Set the temperature to 200 degrees.
    ​```

Expected output

Preheat the oven: Set the temperature to 200 degrees.

Actual output

Preheat the oven: Set the temperature to 200 degrees.*

This is a minimal reproduction — a single list item with bold text at the start followed by plain text ending in a period is enough to trigger the bug. It is not specific to:

  • list length or position within a list
  • non-ASCII characters (reproduced with plain English/ASCII text)

It looks like an emphasis-marker parsing issue triggered when bold text is followed by additional text ending in a period at the end of a line/item.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions