diff options
Diffstat (limited to 'settings/src')
-rw-r--r-- | settings/src/components/appDetails.vue | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/settings/src/components/appDetails.vue b/settings/src/components/appDetails.vue index 72c8640194b..4f6471dfd14 100644 --- a/settings/src/components/appDetails.vue +++ b/settings/src/components/appDetails.vue @@ -96,6 +96,8 @@ <script> import Multiselect from 'vue-multiselect'; +import marked from 'marked'; + import AppScore from './appList/appScore'; import AppManagement from './appManagement'; import prefix from './prefixMixin'; @@ -162,8 +164,7 @@ export default { .sort((a, b) => a.name.localeCompare(b.name)); }, renderMarkdown() { - // TODO: bundle marked as well - var renderer = new window.marked.Renderer(); + var renderer = new marked.Renderer(); renderer.link = function(href, title, text) { try { var prot = decodeURIComponent(unescape(href)) @@ -194,7 +195,7 @@ export default { return quote; }; return DOMPurify.sanitize( - window.marked(this.app.description.trim(), { + marked(this.app.description.trim(), { renderer: renderer, gfm: false, highlight: false, |