mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 19:59:02 +08:00
Merge pull request #2698 from ueberdosis/fix-task-item-regex
fix: allow [] as a prefix for task items
This commit is contained in:
commit
5b4f3d634f
@ -5,7 +5,7 @@ export interface TaskItemOptions {
|
||||
HTMLAttributes: Record<string, any>,
|
||||
}
|
||||
|
||||
export const inputRegex = /^\s*(\[([ |x])\])\s$/
|
||||
export const inputRegex = /^\s*(\[([( |x])?\])\s$/
|
||||
|
||||
export const TaskItem = Node.create<TaskItemOptions>({
|
||||
name: 'taskItem',
|
||||
|
Loading…
Reference in New Issue
Block a user