mirror of
https://github.com/chaos-zhu/easynode.git
synced 2026-10-07 13:18:34 +08:00
Merge branch 'main' of github.com:chaos-zhu/easynode
This commit is contained in:
@@ -150,6 +150,13 @@ const md = new MarkdownIt({
|
||||
}
|
||||
})
|
||||
|
||||
md.renderer.rules.link_open = function (tokens, idx, options, env, self) {
|
||||
const token = tokens[idx]
|
||||
token.attrSet('target', '_blank')
|
||||
token.attrSet('rel', 'noopener noreferrer')
|
||||
return self.renderToken(tokens, idx, options)
|
||||
}
|
||||
|
||||
const { proxy: { $message, $store } } = getCurrentInstance()
|
||||
|
||||
const props = defineProps({
|
||||
|
||||
Reference in New Issue
Block a user