diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-01-10 13:44:22 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-01-10 13:44:22 +0100 |
commit | ea1fcd036f4415033ed9a730b1e007ba6300a918 (patch) | |
tree | d6f2e86a89f9824d39cbe438473d17e5e573dc43 /settings/src | |
parent | 7dacd468bf7b14134cf24f8acfc6bad9b20e7587 (diff) | |
download | nextcloud-server-ea1fcd036f4415033ed9a730b1e007ba6300a918.tar.gz nextcloud-server-ea1fcd036f4415033ed9a730b1e007ba6300a918.zip |
Bundle the 'marked' library
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
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, |