How does Joplin handle rendering HTML syntax along with Markdown?

The renderer method in MarkupToHtml returns two different renderer classes: MdToHtml and HtmlToHtml depending on the markupLanguage passed to it. And the markupLanguage could either be Markdown or HTML. What sets the markupLanguage of a note and how does Joplin handle the mixture of both?

I think the HTML type is only when importing .enex files as HTML and the HTML webclipper option rather than converting to MD as it keeps the additional formatting and styling that would be lost in the conversion.

Markdown by its very nature is designed to support some HTML natively as per commonmark

1 Like

Oh. Thank you for clarifying this.