mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 22:36:14 +08:00
style(link): fix linting
This commit is contained in:
parent
ffeefe21ff
commit
5686dfa86b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user