Skip to content

Handles multiple paragraphs and code blocks in list incorrectly #8

@dominikh

Description

@dominikh

Consider the following markdown input:

- List item 1
- List item 2

  ```
  some code here
  ```

  more text here

  ```
  more code here
  ```

Your package renders it as

<ul>
<li>List item 1</li>
<li>List item 2</li>
</ul>

<pre><code>  some code here
</code></pre>

<p>more text here</p>

<pre><code>  more code here
</code></pre>

That is, it closes the list too soon. GitHub renders it correctly:

  • List item 1

  • List item 2

    some code here
    

    more text here

    more code here
    

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