Skip to content

Some markdown elements not parsed for content with inline html #1195

Closed

Description

@mjbvz

Marked version: 0.3.19

Markdown flavor: CommonMark

Expectation

Rendering the markdown:

<table>
</table>
<br>

## h1

1. a
1. **b**

<table>
</table>

Result

Heading and list not parsed. Here's the html output:

<table>
</table>
<br>

## h1

1. a
1. <strong>b</strong>

<table>
</table>

Activity

  1. added
    L1 - broken
    L2 - annoying
    and removed
    L1 - broken
    on Apr 3, 2018
  2. UziTech commented on Apr 3, 2018

    @UziTech
    Member

    Looks like the problem is in the html regex

    ...closed *(?:\n{2,}|\s*$)...
    

    says there must to be 2 \n after a closing tag or just white space.

    This apparently has to do with the common mark example #199

  3. joshbruce commented on Apr 4, 2018

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    L2 - annoying

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions