update the heading page

This commit is contained in:
Hans Pagel
2020-09-15 16:44:20 +02:00
parent 4150aee687
commit a917264057
4 changed files with 31 additions and 2 deletions

View File

@@ -41,6 +41,7 @@ export default new Node<HeadingOptions>()
next()
},
}))
// TODO: Keyboard Shortcuts
.inputRules(({ options, type }) => {
return options.levels.map((level: Level) => {
return textblockTypeInputRule(new RegExp(`^(#{1,${level}})\\s$`), type, { level })