Skip to content

Conversation

@UziTech
Copy link
Member

@UziTech UziTech commented Nov 9, 2025

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
Copy link

vercel bot commented Nov 9, 2025

@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
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
Copy link

vercel bot commented Nov 9, 2025

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 9, 2025 4:48am

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.

1 participant