1 import MarkdownIt from 'markdown-it';
2 import mdTasksLists from 'markdown-it-task-lists';
4 export class Markdown {
7 this.renderer = new MarkdownIt({html: true});
8 this.renderer.use(mdTasksLists, {label: true});
12 * Get the front-end render used to convert markdown to HTML.
13 * @returns {MarkdownIt}
20 * Convert the given Markdown to HTML.
21 * @param {String} markdown
25 return this.renderer.render(markdown);