Use [MarkdownIt.parse](https://markdown-it.github.io/markdown-it/#MarkdownIt.parse) to implement this.