mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-28 23:59:25 +08:00
Merge pull request #1241 from chrisarmstrong/patch-1
Make Horizontal Rule compatible with Typography extension
This commit is contained in:
commit
5d50c11fd7
@ -70,7 +70,7 @@ export const HorizontalRule = Node.create<HorizontalRuleOptions>({
|
||||
|
||||
addInputRules() {
|
||||
return [
|
||||
nodeInputRule(/^(?:---|___\s|\*\*\*\s)$/, this.type),
|
||||
nodeInputRule(/^(?:---|\—-|___\s|\*\*\*\s)$/, this.type),
|
||||
]
|
||||
},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user