Skip to content

"__!_!__" parsed as strong #660

@mgeisler

Description

@mgeisler

Events from pulldown-cmark:

"__!_!__" -> [
  Start(Paragraph)
    Start(Strong)
      Text(Boxed("!_!"))
    End(Strong)
  End(Paragraph)
]

Events from commonmark.js:

"__!_!__" -> [
  Start(Paragraph)
    Text(Boxed("__!_!__"))
  End(Paragraph)
]

XML from commonmark.js:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document SYSTEM "CommonMark.dtd">
<document xmlns="http://commonmark.org/xml/1.0">
  <paragraph>
    <text>__</text>
    <text>!</text>
    <text>_</text>
    <text>!</text>
    <text>__</text>
  </paragraph>
</document>

I think the problem here is that __ in "__! does not count as a left-flanking delimiter-run because neither 2a nor 2b are fulfilled:

Because __ is not a left-flanking delimiter-run, it should not be parsed as strong emphasis.

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