insomnia/packages/insomnia-app/app/common/markdown-to-html.js

17 lines
286 B
JavaScript
Raw Normal View History

import marked from 'marked';
marked.setOptions({
renderer: new marked.Renderer(),
gfm: true,
tables: true,
breaks: false,
pedantic: false,
sanitize: true,
smartLists: true,
smartypants: false
});
2018-06-25 17:42:50 +00:00
export function markdownToHTML(markdown) {
return marked(markdown);
}