rename some vars
This commit is contained in:
@@ -26,7 +26,7 @@ export default class Code extends Mark {
|
||||
commands(): CommandSpec {
|
||||
return {
|
||||
code: (next, { view }) => {
|
||||
toggleMark(this.schemaType)(view.state, view.dispatch)
|
||||
toggleMark(this.type)(view.state, view.dispatch)
|
||||
next()
|
||||
},
|
||||
}
|
||||
@@ -52,7 +52,7 @@ export default class Code extends Mark {
|
||||
.find(character)
|
||||
.endCapture()
|
||||
.endOfLine(),
|
||||
this.schemaType,
|
||||
this.type,
|
||||
),
|
||||
// match before whitespace
|
||||
markInputRule(
|
||||
@@ -66,7 +66,7 @@ export default class Code extends Mark {
|
||||
.find(character)
|
||||
.endCapture()
|
||||
.endOfLine(),
|
||||
this.schemaType,
|
||||
this.type,
|
||||
),
|
||||
]))
|
||||
.flat(1)
|
||||
@@ -85,7 +85,7 @@ export default class Code extends Mark {
|
||||
.endCapture()
|
||||
.find(character)
|
||||
.endCapture(),
|
||||
this.schemaType,
|
||||
this.type,
|
||||
),
|
||||
// match before whitespace
|
||||
markPasteRule(
|
||||
@@ -98,7 +98,7 @@ export default class Code extends Mark {
|
||||
.endCapture()
|
||||
.find(character)
|
||||
.endCapture(),
|
||||
this.schemaType,
|
||||
this.type,
|
||||
),
|
||||
]))
|
||||
.flat(1)
|
||||
|
||||
Reference in New Issue
Block a user