saberland/saber



Do you want to work on this issue?
You can request for a bounty in order to promote it!
Expose the markdown parser #482
egoist posted onGitHub
<!-- Please don't delete this template or we'll close your issue -->
<!-- Before creating an issue please make sure you are using the latest version of Saber. -->
Feature request
<!-- Please ask questions via following several ways. -->
<!-- https://chat.saber.land/ -->
<!-- https://stackoverflow.com/questions/ask?tags=saberjs -->
What problem does this feature solve?
Allow plugins to use this API to turn Markdown into HTML.
What does the proposed API look like?
const { html } = api.markdown.render(markdownCode, {
defaultPlugins?: boolean,
plugins?: MarkdownItPlugins[],
options?: MarkdownItOptions,
env?: object // Passed to `md.render`
})