Open description links in new tab

Signed-off-by: Florian Meyer <meyer_florian@magenta.de>
This commit is contained in:
Florian Meyer
2021-02-08 10:45:39 +01:00
committed by Julius Härtl
parent 0ed7c4d02f
commit 6335f50dfb
3 changed files with 13 additions and 0 deletions

View File

@@ -75,6 +75,7 @@
<script>
import MarkdownIt from 'markdown-it'
import MarkdownItTaskLists from 'markdown-it-task-lists'
import MarkdownItLinkAttributes from 'markdown-it-link-attributes'
import AttachmentList from './AttachmentList'
import { Actions, ActionButton, Modal } from '@nextcloud/vue'
import { formatFileSize } from '@nextcloud/files'
@@ -86,6 +87,13 @@ const markdownIt = new MarkdownIt({
})
markdownIt.use(MarkdownItTaskLists, { enabled: true, label: true, labelAfter: true })
markdownIt.use(MarkdownItLinkAttributes, {
attrs: {
target: '_blank',
rel: 'noreferrer noopener',
},
})
export default {
name: 'Description',
components: {