I am suggesting the ability to preview Mermaid.js diagrams directly in the Kagi Assistant interface. Since I know the AI Assistant is in the process of a major overhaul, this is more of a suggestion for AI Assistant 2.0 if this functionality is not already included.
Currently, when I ask for a Mermaid.js diagram, I get the text of the diagram as a code block, as expected. I am suggesting the addition of a button available on hover that would allow the user to toggle back and forth between a live preview of the diagram and the code:
This could be done using the open source Mermaid.js Live Editor project: https://github.com/mermaid-js/mermaid-live-editor
Upon toggle, I would expect to see a rendering of the diagram such as the below: