Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single-item multi-paragraph list can generate incorrect HTML #174

Closed
sjjhsjjh opened this issue Oct 2, 2019 · 1 comment
Closed

Single-item multi-paragraph list can generate incorrect HTML #174

sjjhsjjh opened this issue Oct 2, 2019 · 1 comment

Comments

@sjjhsjjh
Copy link

sjjhsjjh commented Oct 2, 2019

Hi, It looks like a list with one item that has multiple paragraphs can generate incorrect HTML. Specifically, multiple p elements aren't generated. Here is an example:

This is a list of one instruction that sets incorrectly.

1.  First instruction.

    Longer paragraph that expands upon the first instruction.

This is a list of two instructions that sets OK.

1.  First instruction.

    Longer paragraph that expands upon the short text.

2.  Second instruction.

Those are all the instructions.

This is the HTML output:

    <p>This is a list of one instruction that sets incorrectly.</p>

    <ol>
    <li>First instruction.

    Longer paragraph that expands upon the first instruction.</li>
    </ol>

    <p>This is a list of two instructions that sets OK.</p>

    <ol>
    <li><p>First instruction.</p>

    <p>Longer paragraph that expands upon the short text.</p></li>
    <li><p>Second instruction.</p></li>
    </ol>

    <p>Those are all the instructions.</p>

Cheers, Jim

@fletcher
Copy link
Owner

fletcher commented Oct 2, 2019

Fixed in development branch. Thanks for pointing this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants