fix(core): update
This commit is contained in:
@@ -8,7 +8,11 @@ export class SmartMarkdown {
|
||||
* @param mdString
|
||||
*/
|
||||
public async markdownToHtml(mdString: string): Promise<string> {
|
||||
const result = await plugins.remark().use(plugins.remarkHtml).process(mdString);
|
||||
const result = await plugins
|
||||
.remark()
|
||||
.use(plugins.remarkHtml)
|
||||
.use(plugins.remarkFrontmatter, ['yaml', 'toml'])
|
||||
.process(mdString);
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user