fix markinputrule
This commit is contained in:
@@ -51,11 +51,11 @@ export default function (regexp: RegExp, markType: MarkType, getAttributes?: Fun
|
||||
}
|
||||
|
||||
markEnd = start + startSpaces + captureGroup.length
|
||||
}
|
||||
|
||||
tr.addMark(start, markEnd, markType.create(attributes))
|
||||
tr.addMark(start + startSpaces, markEnd, markType.create(attributes))
|
||||
|
||||
tr.removeStoredMark(markType)
|
||||
}
|
||||
|
||||
return tr
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user