fix(markdown): empty text

This commit is contained in:
chenos 2023-03-19 12:59:48 +08:00
parent 3cce8f75e5
commit 75c338b0f1

View File

@ -3,6 +3,9 @@ import './highlight-theme/default.less';
import './highlight-theme/table.less';
export async function parseMarkdown(text: string) {
if (!text) {
return text;
}
const m = await import('./md');
return m.default.render(text);
}