Skip to content

Sub-list items which are multiples of 3 are wrapped with pre/code blocks in version 4.0.6 #2314

Description

@udara28

Marked version:
4.0.6

Describe the bug
Every sublist item which is a multiple of 3 is wrapped with a <pre><code></code></pre> block. This issue is present in the 4.0.6(latest) version but not in 4.0.5.

To Reproduce
A hosted test case to reproduce this issue can be found in this CodePen Demo

Example markdown text to reproduce the bug:

1. list item one
    1. sublist item one
    2. sublist item two

2. list item two
    1. sublist item one
    2. sublist item two

3. list item three
    1. sublist item one
    2. sublist item two

4. list item four
    1. sublist item one
    2. sublist item two

Expected behavior
<pre><code></code></pre> should not appear in the sub list items.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    L1 - brokenValid usage causes incorrect output OR a crash AND there is no known workaround for the issuecategory: listsreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions