Skip to content

Issue with colons inside bold tags #3938

Closed

Description

@sammorrisdesign

Marked version: 4.3 (But seemingly still happens on the latest version too)

Describe the bug
When the copy between bold tags ends in a colon and there is no trailing space after, the bold tags aren't respected, and asterisks are rendered as characters.

To Reproduce
Use the following markdown: **foo:**bar within marked. See below how it looks in the demo:

Image

Expected behavior
Daring Fireball's Markdown render's as I would expect:

Image

Activity

  1. UziTech commented on Apr 4, 2026

    @UziTech
    Member

    Ya looks like marked follows CommonMark even when pedantic option is set.

  2. UziTech commented on Aug 11, 2026

    @UziTech
    Member

    fixed in #3999

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions