Skip to content

Unordered list nested inside an ordered list causes numbers to be incorrect #1015

Open
@daltonclaybrook

Description

When using an unordered list as a child of an ordered list element, the HTML that is produced does not preserve the nesting, causing the <ol> and <ul> tags to appear at the same level in the hierarchy. This in turn causes the numbers in the ordered list to be incorrect.

Here's an example demonstrating the issue

You can see that each item is listed with "1." even though they are numbered 1-4 in the markdown.

In the rendered HTML, you can see the <ol> and <ul> tags being rendered at the same level rather than the <ul> tags being nested inside the <ol> tags as expected.
image

Activity

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

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