mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
5f4c19da35
Co-authored-by: Opender Singh <opender.singh@konghq.com>
18 lines
351 B
TypeScript
18 lines
351 B
TypeScript
import marked from 'marked';
|
|
|
|
marked.setOptions({
|
|
renderer: new marked.Renderer(),
|
|
gfm: true,
|
|
// @ts-expect-error -- TSCONVERSION missing from marked types
|
|
tables: true,
|
|
breaks: false,
|
|
pedantic: false,
|
|
sanitize: true,
|
|
smartLists: true,
|
|
smartypants: false,
|
|
});
|
|
|
|
export function markdownToHTML(markdown) {
|
|
return marked(markdown);
|
|
}
|