Merge pull request #2698 from ueberdosis/fix-task-item-regex
fix: allow [] as a prefix for task items
This commit is contained in:
@@ -5,7 +5,7 @@ export interface TaskItemOptions {
|
|||||||
HTMLAttributes: Record<string, any>,
|
HTMLAttributes: Record<string, any>,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const inputRegex = /^\s*(\[([ |x])\])\s$/
|
export const inputRegex = /^\s*(\[([( |x])?\])\s$/
|
||||||
|
|
||||||
export const TaskItem = Node.create<TaskItemOptions>({
|
export const TaskItem = Node.create<TaskItemOptions>({
|
||||||
name: 'taskItem',
|
name: 'taskItem',
|
||||||
|
|||||||
Reference in New Issue
Block a user