forked from shadowfacts/shadowfacts.net
11 lines
217 B
TypeScript
11 lines
217 B
TypeScript
|
import MarkdownIt from "markdown-it";
|
||
|
import * as util from "./util";
|
||
|
|
||
|
const md = new MarkdownIt({
|
||
|
highlight: util.highlight,
|
||
|
html: true
|
||
|
});
|
||
|
|
||
|
export function render(text: string): string {
|
||
|
return md.render(text);
|
||
|
}
|