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

fix: fix list with no items looping forever #3560

Merged
merged 2 commits into from
Dec 15, 2024

Conversation

UziTech
Copy link
Member

@UziTech UziTech commented Dec 12, 2024

Marked version: 15.0.3

Description

Fix looping forever when a list doesn't have any items. For example if it thinks the item is an hr but hr has been disabled like

tokenizer: {
  hr() {
    return undefined;
  }
}

Contributor

  • Test(s) exist to ensure functionality and minimize regression (if no tests added, list tests covering this PR); or,
  • no tests required for this PR.
  • If submitting new feature, it has been documented in the appropriate places.

Committer

In most cases, this should be a different person than the contributor.

Copy link

vercel bot commented Dec 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marked-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 14, 2024 4:08am

@UziTech UziTech merged commit e4198ed into markedjs:master Dec 15, 2024
8 checks passed
github-actions bot pushed a commit that referenced this pull request Dec 15, 2024
## [15.0.4](v15.0.3...v15.0.4) (2024-12-15)

### Bug Fixes

* fix list with no items looping forever ([#3560](#3560)) ([e4198ed](e4198ed))
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

Successfully merging this pull request may close these issues.

[BUG] marked.parse() deathloops on invalid markdown since 15.0.1
2 participants