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