insomnia/packages/insomnia-app/app/common/markdown-to-html.js
Gregory Schier 4901f03041 Add Prettier
2018-06-25 13:42:50 -04:00

17 lines
286 B
JavaScript

import marked from 'marked';
marked.setOptions({
renderer: new marked.Renderer(),
gfm: true,
tables: true,
breaks: false,
pedantic: false,
sanitize: true,
smartLists: true,
smartypants: false
});
export function markdownToHTML(markdown) {
return marked(markdown);
}