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

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

Closed
udara28 opened this issue Dec 8, 2021 · 3 comments · Fixed by #2318
Closed

Comments

@udara28
Copy link

@udara28 udara28 commented Dec 8, 2021

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.

@UziTech
Copy link
Member

@UziTech UziTech commented Dec 9, 2021

confirmed demo

@calculuschild
Copy link
Contributor

@calculuschild calculuschild commented Dec 9, 2021

I think I know where the error is.

calculuschild added a commit to calculuschild/marked that referenced this issue Dec 9, 2021
@styfle styfle closed this in #2318 Dec 9, 2021
styfle pushed a commit that referenced this issue Dec 9, 2021
github-actions bot pushed a commit that referenced this issue Dec 9, 2021
## [4.0.7](v4.0.6...v4.0.7) (2021-12-09)

### Bug Fixes

* Fix every third list item broken ([#2318](#2318)) ([346b162](346b162)), closes [#2314](#2314)
@github-actions
Copy link

@github-actions github-actions bot commented Dec 10, 2021

🎉 This issue has been resolved in version 4.0.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

3 participants