feat: Add support for autolink (#2226)
* wip * WIP * add autolink implementation * refactoring * set keepOnSplit to false * refactoring * improve changed ranges detection * move some helpers into core Co-authored-by: Philipp Kühn <philippkuehn@MacBook-Pro-von-Philipp.local>
This commit is contained in:
@@ -37,7 +37,7 @@ export default function markPasteRule(config: {
|
||||
const textStart = range.from + fullMatch.indexOf(captureGroup)
|
||||
const textEnd = textStart + captureGroup.length
|
||||
|
||||
const excludedMarks = getMarksBetween(range.from, range.to, state)
|
||||
const excludedMarks = getMarksBetween(range.from, range.to, state.doc)
|
||||
.filter(item => {
|
||||
// @ts-ignore
|
||||
const excluded = item.mark.type.excluded as MarkType[]
|
||||
|
||||
Reference in New Issue
Block a user