Skip to content

Upgrade Marked (or switch to a different Markdown implementation) #272

@mootari

Description

@mootari

Given the following Markdown containing a "loose list":

- a
- b
- c

- a
- b
- c

the generated HTML wraps multiple elements in paragraphs:

<ul>
<li>a</li>
<li>b</li>
<li><p>c</p>
</li>
<li><p>a</p>
</li>
<li>b</li>
<li>c</li>
</ul>

resulting in the following appearance:
image

Observable currently uses marked 0.3.12. This bug got fixed in marked 0.5.0 (demo, PR).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions