9 lines
132 B
TypeScript
9 lines
132 B
TypeScript
import { marked } from 'marked';
|
|
|
|
export function markdown(text) {
|
|
if (!text) {
|
|
return '';
|
|
}
|
|
return marked.parse(text);
|
|
}
|