Skip to content

link inside of Strong delimiter, the strong delimiter not work #2041

@KnIfER

Description

@KnIfER

Marked version: https://github.com/markedjs/marked/blob/009427f65dadd5dff9ec0189e008677aea9fbcfa/lib/marked.js

Describe the bug
When there is a link inside of a strong delimiter, followed closely by a character other than [ .!,;] ...., the strong delimiter is broken.

To Reproduce
image

**STRONG**.  OK  
**STRONG**。  OK  
**STRONG**!  OK  
**STRONG**M  OK

**[STRONG]( http://abc.com )**!    OK  
**[STRONG]( http://abc.com )**.    OK  
**[STRONG]( http://abc.com )**!   bad!  
**[STRONG]( http://abc.com )** !   OK   
**[STRONG]( http://abc.com )**M   bad!  
**[STRONG]( http://abc.com )** M   OK     

Info
Old Version don't have this issue.

Expected behavior
The strong delimiter should bolden the wrapped text no matter of what's inside and what's behind.

Metadata

Metadata

Assignees

No one assigned

    Labels

    L2 - annoyingSimilar to L1 - broken but there is a known workaround available for the issuecategory: mixed content

    Type

    No type
    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