Skip to content

Issue with colons inside bold tags #3938

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

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