Skip to content

fix: fix block elements in task item - #3828

Merged
UziTech merged 8 commits into
markedjs:masterfrom
UziTech:tasklist_blocks
Nov 20, 2025
Merged

fix: fix block elements in task item#3828
UziTech merged 8 commits into
markedjs:masterfrom
UziTech:tasklist_blocks

Conversation

@UziTech

@UziTech UziTech commented Nov 9, 2025

Copy link
Copy Markdown
Member

Marked version: 17.0.0

Markdown flavor: GFM

Description

Block elements cannot come after a task list item checkbox.

example:

  • # should not be a heading
  • - should not be a nested list
  • > should not be a blockquote
  • ---
    The above should not be an hr
  • ```
    This should not be code
  • [def]: https://example.com
    The above should not be a link definition

  • should not be html
    *This should be html*
  • | should | not be |
    |---|---|
    | a | table |

Currently these are block tokens in marked demo

This fixes it for all block level elements .

Contributor

  • Test(s) exist to ensure functionality and minimize regression (if no tests added, list tests covering this PR); or,

Committer

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

@vercel

vercel Bot commented Nov 9, 2025

Copy link
Copy Markdown

@UziTech is attempting to deploy a commit to the MarkedJS Team on Vercel.

A member of the Team first needs to authorize it.

</li>
<li>
<p><input type="checkbox" disabled=""></p>
<p>[ ]</p>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests were wrong before. They match GitHub now

@UziTech
UziTech marked this pull request as ready for review November 9, 2025 02:27
@vercel

vercel Bot commented Nov 9, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
marked-website Ready Ready Preview Comment Nov 20, 2025 4:55pm

Comment thread src/Lexer.ts Outdated
Comment thread src/Tokenizer.ts
UziTech and others added 2 commits November 20, 2025 09:43
Co-authored-by: Steven <steven@ceriously.com>
Co-authored-by: Steven <steven@ceriously.com>
@UziTech
UziTech merged commit 921ee22 into markedjs:master Nov 20, 2025
8 checks passed
@UziTech
UziTech deleted the tasklist_blocks branch November 20, 2025 16:56
github-actions Bot pushed a commit that referenced this pull request Nov 20, 2025
## [17.0.1](v17.0.0...v17.0.1) (2025-11-20)

### Bug Fixes

* fix block elements in task item ([#3828](#3828)) ([921ee22](921ee22))
Logiclayer1111 pushed a commit to Logiclayer1111/marked that referenced this pull request Apr 20, 2026
## [17.0.1](markedjs/marked@v17.0.0...v17.0.1) (2025-11-20)

### Bug Fixes

* fix block elements in task item ([#3828](markedjs/marked#3828)) ([a5d4b30](markedjs/marked@a5d4b30))
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.

2 participants