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

@@ -25,31 +25,31 @@ export default new Mark()
.keys(({ editor }) => ({
'Mod-`': () => editor.code()
}))
// .inputRules(({ type }) => {
// const regex = VerEx()
// .add('(?:^|\\s)')
// .beginCapture()
// .find('`')
// .beginCapture()
// .somethingBut('`')
// .endCapture()
// .find('`')
// .endCapture()
// .endOfLine()
.inputRules(({ type }) => {
const regex = VerEx()
.add('(?:^|\\s)')
.beginCapture()
.find('`')
.beginCapture()
.somethingBut('`')
.endCapture()
.find('`')
.endCapture()
.endOfLine()
// return [markInputRule(regex, type)]
// })
// .pasteRules(({ type }) => {
// const regex = VerEx()
// .add('(?:^|\\s)')
// .beginCapture()
// .find('`')
// .beginCapture()
// .somethingBut('`')
// .endCapture()
// .find('`')
// .endCapture()
return [markInputRule(regex, type)]
})
.pasteRules(({ type }) => {
const regex = VerEx()
.add('(?:^|\\s)')
.beginCapture()
.find('`')
.beginCapture()
.somethingBut('`')
.endCapture()
.find('`')
.endCapture()
// return [markPasteRule(regex, type)]
// })
return [markPasteRule(regex, type)]
})
.create()