resolve all configs

This commit is contained in:
Philipp Kühn
2020-09-09 18:07:17 +02:00
parent 9a1f99ba4c
commit 2ff134274e
5 changed files with 140 additions and 127 deletions

View File

@@ -43,16 +43,16 @@ export default new Node<HeadingOptions>()
next()
},
}))
// .inputRules(({ options, type }) => {
// return options.levels.map((level: Level) => {
// const regex = VerEx()
// .startOfLine()
// .find('#')
// .repeatPrevious(level)
// .whitespace()
// .endOfLine()
.inputRules(({ options, type }) => {
return options.levels.map((level: Level) => {
const regex = VerEx()
.startOfLine()
.find('#')
.repeatPrevious(level)
.whitespace()
.endOfLine()
// return textblockTypeInputRule(regex, type, { level })
// })
// })
return textblockTypeInputRule(regex, type, { level })
})
})
.create()