style(link): fix linting

This commit is contained in:
Dominik Biedebach 2023-08-18 08:54:22 -07:00
parent ffeefe21ff
commit 5686dfa86b

View File

@ -87,7 +87,10 @@ export function autolink(options: AutolinkOptions): Plugin {
}))
// ignore link inside code mark
.filter(link => {
if (!newState.schema.marks.code) return true; // maybe code is not enabled for this editor
if (!newState.schema.marks.code) {
return true
}
return !newState.doc.rangeHasMark(
link.from,
link.to,