Skip to content

List Block and HTML Block interaction issue: not handling Type-7 HTML at end properly #213

@jackdewinter

Description

@jackdewinter

Given the following Markdown:

- <script>
- some text
some other text
</script>

this implementation returns:

<ul>
<li>
<script>
</li>
<li>some text
some other text</li>
</ul>
</script>

Based on my reading of the script, documented here, the last three lines should be:

some other text
</script></li>
</ul>

As the </script> tag on line 4 is not a valid HTML Block start (type 7 cannot break paragraphs), it should be considered as normal text, only to be further realized as Raw HTML when processing the inline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions