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
commit 5d50c11fd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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