Merge pull request #1241 from chrisarmstrong/patch-1
Make Horizontal Rule compatible with Typography extension
This commit is contained in:
@@ -70,7 +70,7 @@ export const HorizontalRule = Node.create<HorizontalRuleOptions>({
|
|||||||
|
|
||||||
addInputRules() {
|
addInputRules() {
|
||||||
return [
|
return [
|
||||||
nodeInputRule(/^(?:---|___\s|\*\*\*\s)$/, this.type),
|
nodeInputRule(/^(?:---|\—-|___\s|\*\*\*\s)$/, this.type),
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user