Skip to content

Interior strong+emph not parsed #528

@brson

Description

@brson

This doesn't parse like I expect:

a***b***c

Because of rules 9 & 10 here it parses as just a single text run with no emphasis.

For my purposes I need that to parse as strong+emphasis, and it seems like a simple addition to the rules makes it work, namely that if both the opener and closer delimiters have a length that are a multiple of 3, then they are considered valid delimiter runs.

Here's a patch to comrak that implements such a rule while still passing the spec suite:

brson/comrak@ac3218b

cc @kivikakk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions