From 58b08e54b4197d5257de260f0c6fad6721478349 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sat, 28 Mar 2020 14:28:08 -0400 Subject: [PATCH] fix: missing footnote module in markdown editor preview --- client/components/editor/editor-markdown.vue | 2 ++ server/modules/rendering/html-mediaplayers/definition.yml | 2 +- server/modules/rendering/markdown-core/definition.yml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client/components/editor/editor-markdown.vue b/client/components/editor/editor-markdown.vue index d03fbc99..4ff996d1 100644 --- a/client/components/editor/editor-markdown.vue +++ b/client/components/editor/editor-markdown.vue @@ -213,6 +213,7 @@ import mdAbbr from 'markdown-it-abbr' import mdSup from 'markdown-it-sup' import mdSub from 'markdown-it-sub' import mdMark from 'markdown-it-mark' +import mdFootnote from 'markdown-it-footnote' import mdImsize from 'markdown-it-imsize' import katex from 'katex' import twemoji from 'twemoji' @@ -261,6 +262,7 @@ const md = new MarkdownIt({ .use(mdSup) .use(mdSub) .use(mdMark) + .use(mdFootnote) .use(mdImsize) // ======================================== diff --git a/server/modules/rendering/html-mediaplayers/definition.yml b/server/modules/rendering/html-mediaplayers/definition.yml index c449922c..4b0201d0 100644 --- a/server/modules/rendering/html-mediaplayers/definition.yml +++ b/server/modules/rendering/html-mediaplayers/definition.yml @@ -2,7 +2,7 @@ key: htmlMediaplayers title: Media Players description: Embed players such as Youtube, Vimeo, Soundcloud, etc. author: requarks.io -icon: mdi-library-video +icon: mdi-video enabledDefault: true dependsOn: htmlCore props: {} diff --git a/server/modules/rendering/markdown-core/definition.yml b/server/modules/rendering/markdown-core/definition.yml index 4081b5c9..92a4ca15 100644 --- a/server/modules/rendering/markdown-core/definition.yml +++ b/server/modules/rendering/markdown-core/definition.yml @@ -4,7 +4,7 @@ description: Basic Markdown Parser author: requarks.io input: markdown output: html -icon: mdi-markdown +icon: mdi-language-markdown props: allowHTML: type: Boolean