Kroki support
This commit adds support for generating links to be rendered with [Kroki](https://kroki.io) compatible renderer. Apart from supporting many other diagram formats, it directly benefits Mermaid editor because it generates much shorter URLs (due to the compression). Custom Kroki URL can be configured through environment variable if you want to use self-hosted instance of Kroki.
This commit is contained in:
@@ -32,6 +32,11 @@ docker run --publish 8000:80 ghcr.io/mermaid-js/mermaid-live-editor
|
||||
When building, Set the Environment variable MERMAID_RENDERER_URL to the rendering service.
|
||||
Default is `https://mermaid.ink`
|
||||
|
||||
### To configure Kroki Instance URL
|
||||
|
||||
When building, Set the Environment variable MERMAID_KROKI_RENDERER_URL to your Kroki instance.
|
||||
Default is `https://kroki.io`
|
||||
|
||||
### Development
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user