Closed kistlin closed 6 months ago
Thank you for reporting this, and sorry this causes you trouble. I'll be porting change https://github.com/asciidoctor/asciidoctor-kroki/issues/444 to the AsciiDoc plugin.
BTW, the AsciiDoc plugin for IntelliJ as an embedded Mermaid support which is experimental, still you might want to give it a try. You enable it in the same settings menu where you enabled Kroki.
This will be fixed in the next upcoming release. I'll update the issue once a pre-release is available. Thank you for providing a nice reproducer for the problem.
There is now release 0.41.12 which includes this change.
I published just now to the JetBrains marketplace. It should be available via the automatic update mechanism later today.
The release of the plugin is available from GitHub releases for manual installation in the meantime.
Thank you for the quick fix. It works.
Observed vs. expected behavior
Expected behavior is that the preview is rendered.
Steps to reproduce
Setup this docker compose file to run a local instance. https://github.com/asciidoctor/asciidoctor-intellij-plugin/issues/1361#issuecomment-1564984564
Configure the plugin to use the local Kroki instance on http://localhost:8000/. And use the plugin to try and render a mermaid diagram. (same with PlantUML)
Setup a
*.adoc
with contentThis used to render, but now fails with the mentioned error.
Environment
Plugin Version: 0.41.11 IntelliJ Details: 2023.3.4
A downgrade to 0.41.9 makes it work again.