fix markinputrule

This commit is contained in:
Philipp Kühn
2020-11-30 23:41:46 +01:00
parent b7ae78a95f
commit f6b8c92e5b

View File

@@ -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
})