Is it possible to embed mermaid diagrams (e.g. flowchart) in HTML in Joplin?

I think the question is also how to integrate the JS callback. I don't know unfortunately.