Is it possible to use https://mermaid.js.org/ in Retool? I can't get it to work. I've added the CDN to Libraries:
And tried to add a diagram using the HTML, Text and Custom Component elements, but none of them render a diagram:
I created a static page HTML page locally on my machine (not in Retool) to test the code:
<html>
<body>
<script src="https://cdn.jsdelivr.net/npm/mermaid@10.9.0/dist/mermaid.min.js"></script>
Here is one mermaid diagram:
<pre class="mermaid">
graph TD
A[Client] --> B[Load Balancer]
B --> C[Server1]
B --> D[Server2]
</pre>
And here is another:
<pre class="mermaid">
graph TD
A[Client] -->|tcp_123| B
B(Load Balancer)
B -->|tcp_456| C[Server1]
B -->|tcp_456| D[Server2]
</pre>
</body>
</html>