Closed transcranial closed 6 years ago
same question
the vue verison is v2.4.2, vue-markdonw version is also v2.2.1.
Try this:
data: function () {
return {
anchorAttributes: {
target: '_blank',
rel: 'noopener noreferrer nofollow'
},
...
}
},
Then call anchorAttributes in your vue-markdown tag
<vue-markdown :anchor-attributes="anchorAttributes">{{ your.data }}</vue-markdown>
fix in #39
v2.2.1:
[Vue warn]: Invalid default value for prop "anchorAttributes": Props with type Object/Array must use a factory function to return the default value.