Merge pull request #2698 from ueberdosis/fix-task-item-regex

fix: allow [] as a prefix for task items
This commit is contained in:
bdbch
2022-04-10 21:44:58 +02:00
committed by GitHub

View File

@@ -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',