Merge pull request #1241 from chrisarmstrong/patch-1

Make Horizontal Rule compatible with Typography extension
This commit is contained in:
Philipp Kühn
2021-05-03 09:13:58 +02:00
committed by GitHub

View File

@@ -70,7 +70,7 @@ export const HorizontalRule = Node.create<HorizontalRuleOptions>({
addInputRules() {
return [
nodeInputRule(/^(?:---|___\s|\*\*\*\s)$/, this.type),
nodeInputRule(/^(?:---|\—-|___\s|\*\*\*\s)$/, this.type),
]
},
})