Open description links in new tab
Signed-off-by: Florian Meyer <meyer_florian@magenta.de>
This commit is contained in:
committed by
Julius Härtl
parent
0ed7c4d02f
commit
6335f50dfb
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user