mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
17 lines
286 B
JavaScript
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);
|
|
}
|