fix(markdown): empty text
This commit is contained in:
parent
3cce8f75e5
commit
75c338b0f1
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user