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();
|
||||
}
|
||||
|
||||
|
@@ -1,8 +1,9 @@
|
||||
// third party remark
|
||||
import remark from 'remark';
|
||||
import remarkFrontmatter from 'remark-frontmatter';
|
||||
import remarkHtml from 'remark-html';
|
||||
|
||||
export { remark, remarkHtml };
|
||||
export { remark, remarkFrontmatter, remarkHtml };
|
||||
|
||||
// other third party stuff
|
||||
import turndown from 'turndown';
|
||||
|
Reference in New Issue
Block a user