2019-01-04 18:14:53 +00:00
|
|
|
import MarkdownIt from "markdown-it";
|
|
|
|
import * as util from "./util";
|
|
|
|
|
|
|
|
const md = new MarkdownIt({
|
|
|
|
highlight: util.highlight,
|
2019-06-29 19:02:14 +00:00
|
|
|
html: true,
|
|
|
|
typographer: true
|
2019-01-04 18:14:53 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
export function render(text: string): string {
|
|
|
|
return md.render(text);
|
|
|
|
}
|