diff --git a/dashboard/src/index.js b/dashboard/src/index.js index e5b71abec..33b136b07 100644 --- a/dashboard/src/index.js +++ b/dashboard/src/index.js @@ -4,6 +4,18 @@ import '@fontsource/noto-sans'; import { tooltip, fallbackImage } from 'pankow'; +// Override the link rendering method for markdown renderings to open in new tab +import { marked } from 'marked'; + +const renderer = new marked.Renderer(); +renderer.link = function(item) { + const titleAttr = item.title ? ` title="${item.title}"` : ''; + return `${item.text}`; +}; + +marked.setOptions({ renderer }); + + import i18n from './i18n.js'; import Index from './Index.vue';