mirror of
https://github.com/markedjs/marked.git
synced 2026-11-30 16:48:05 +01:00
fix: recognize task list items when a tab follows the checkbox (#4163)
This commit is contained in:
+2
-2
@@ -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: /^<(.*)>$/,
|
||||
|
||||
@@ -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>
|
||||
@@ -0,0 +1,8 @@
|
||||
# tab after the marker
|
||||
|
||||
- [ ] item
|
||||
- [x] item
|
||||
|
||||
# space and tab after the marker
|
||||
|
||||
- [X] item
|
||||
Reference in New Issue
Block a user