fix tests
This commit is contained in:
@@ -39,7 +39,8 @@ const Link = createMark({
|
|||||||
target: attributes.target,
|
target: attributes.target,
|
||||||
}),
|
}),
|
||||||
parseHTML: node => ({
|
parseHTML: node => ({
|
||||||
target: node.getAttribute('target'),
|
// TODO: always return default value on `null` or `undefined`
|
||||||
|
target: node.getAttribute('target') || this.options.target,
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user