fix: recognize task list items when a tab follows the checkbox (#4163)

This commit is contained in:
CyberNative AI LLC
2026-11-02 07:56:49 -07:00
committed by GitHub
parent e43ceef44a
commit 64a299def9
3 changed files with 19 additions and 2 deletions
+2 -2
View File
@@ -64,8 +64,8 @@ export const other = {
blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm,
blockquoteMarkerWhitespace: /^( {0,3}>)([ \t]+)/gm,
listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g,
listIsTask: /^\[[ xX]\] +\S/,
listReplaceTask: /^\[[ xX]\] +/,
listIsTask: /^\[[ xX]\][ \t]+\S/,
listReplaceTask: /^\[[ xX]\][ \t]+/,
listTaskCheckbox: /\[[ xX]\]/,
anyLine: /\n.*\n/,
hrefBrackets: /^<(.*)>$/,
+9
View File
@@ -0,0 +1,9 @@
<h1>tab after the marker</h1>
<ul>
<li><input disabled="" type="checkbox"> item</li>
<li><input checked="" disabled="" type="checkbox"> item</li>
</ul>
<h1>space and tab after the marker</h1>
<ul>
<li><input checked="" disabled="" type="checkbox"> item</li>
</ul>
+8
View File
@@ -0,0 +1,8 @@
# tab after the marker
- [ ] item
- [x] item
# space and tab after the marker
- [X] item