]> BookStack Code Mirror - bookstack/blobdiff - resources/js/markdown/markdown.js
Readme: Swapped codeclimate reference for custom phpmetrics
[bookstack] / resources / js / markdown / markdown.js
diff --git a/resources/js/markdown/markdown.js b/resources/js/markdown/markdown.js
deleted file mode 100644 (file)
index ef3a028..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-import MarkdownIt from "markdown-it";
-import mdTasksLists from 'markdown-it-task-lists';
-
-export class Markdown {
-
-    constructor() {
-        this.renderer = new MarkdownIt({html: true});
-        this.renderer.use(mdTasksLists, {label: true});
-    }
-
-    /**
-     * Get the front-end render used to convert markdown to HTML.
-     * @returns {MarkdownIt}
-     */
-    getRenderer() {
-        return this.renderer;
-    }
-
-    /**
-     * Convert the given Markdown to HTML.
-     * @param {String} markdown
-     * @returns {String}
-     */
-    render(markdown) {
-        return this.renderer.render(markdown);
-    }
-}
-
-
-