Rendering Plugin Markdown with HyperMD List Styles

Is there an example of a plugin or code snippet that is able to render nested lists that include all the formatting that gets added by CodeMirror + HyperMD? Trying to generate lists that match the native style from a plugin.

Tried using MarkdownRenderer.renderMarkdown but that just outputs plain HTML without any of the proper styles.

Looking for an example of grabbing an instance of the active editor, passing in markdown and having it output correctly styled HTML as if it was entered in the UI manually. Alternative would be to try and replicate all the HyperMD CSS classes and calculated inline styles but that seems pretty brittle and prone to breaking if the app ever customizes the HyperMD styles or moves away from using HyperMD.