View Source Kino.Kroki (kino_kroki v0.1.0)
A simple encoder for the online diagram renderer https://kroki.io/
Link to this section Summary
Functions
Returns a Kino.Markdown image to render the diagram.
Link to this section Functions
@spec new(graph :: String.t(), type :: Kino.Kroki.Samples.type()) :: Kino.Markdown.t()
Returns a Kino.Markdown image to render the diagram.
examples
Examples
iex> Kino.Kroki.new(Kino.Kroki.Sample.get(:graphviz), :graphviz)
%Kino.Markdown{
content: "![svg](https://kroki.io/graphviz/svg/eJx9kM"
}