Closed ferrao closed 2 years ago
This extension does rely on https://kroki.io or on a local server. Could you please provide a reproduction case?
This extension does rely on https://kroki.io or on a local server.
But is it using your fork ? If so, it is outdated and using mermaid 8.5.0
.
My diagrams render ok in the latest 8.14.0
Could you please provide a reproduction case?
Yes, let me try to get something that fails to you.
@Mogztter while trying to get a minimal example for you I found the problem.
When using note
and the <>
chars, we need to escape them as html entities <
and >
But for some reason, mermaid 8.14.0
does not need that.
But is it using your fork ? If so, it is outdated and using mermaid 8.5.0. My diagrams render ok in the latest 8.14.0
No, this extension is using the version deployed on https://kroki.io/
When using note and the <> chars, we need to escape them as html entities < and > But for some reason, mermaid 8.14.0 does not need that.
Could you please provide a minimal example?
Could you please provide a minimal example?
sequenceDiagram
rect rgba(200, 150, 255, 0.2)
participant John
Note over John: Text in <<note>>
end
With the mermaid cli this diagram renders as:
$ mmdc -i example.mmdc -o example.svg
But in Kroki.io it renders as:
If you replace <>
with the respective html entities it renders ok:
Thanks for providing a minimal reproduction case. I believe this is a bug in yuzutech/kroki. I cannot move this issue, so I've created a new one: https://github.com/yuzutech/kroki/issues/1253
I am having issues rendering mermaid diagrams with kroki, but they render just fine using
mermaid
orasciidoctor-diagram
. Not sure what is the version of mermaid that is running onkroki.io
, but I suspect it might be outdated.Looking at kroki it seems to have the latest mermaid version (
8.14.0
). Any chance you can update on your side?