mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 22:37:54 +00:00
markdown links open in new tab
This commit is contained in:
parent
53d97905fc
commit
967dfea182
1 changed files with 5 additions and 1 deletions
|
|
@ -152,7 +152,11 @@ const rules = {
|
|||
return htmlTag('a', output(node.content, state), { class: 'd-spoiler' }, state);
|
||||
}
|
||||
},
|
||||
link: markdown.defaultRules.link
|
||||
link: Object.assign({ }, markdown.defaultRules.link, {
|
||||
html: (node, output, state) => {
|
||||
return htmlTag('a', output(node.content, state), { href: markdown.sanitizeUrl(node.target), rel: "noreferrer", target: "_blank" }, state);
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
const discordCallbackDefaults = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue