Skip to content

Commit

Permalink
feat: support Tikz/PGF plots
Browse files Browse the repository at this point in the history
Uses https://github.com/pgf-tikz/pgf to render Tikz/PGF plots. Support
was added in Kroki@0.21.0.

References #42, closes #46.
  • Loading branch information
bauglir committed Mar 21, 2024
1 parent c30714e commit 59f4008
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Kroki.jl
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ DIAGRAM_TYPE_METADATA = Dict{Symbol, DiagramTypeMetadata}(
:svgbob =>
DiagramTypeMetadata("Svgbob", "https://ivanceras.github.io/content/Svgbob.html"),
:symbolator => DiagramTypeMetadata("Symbolator", "https://github.com/kevinpt/symbolator"),
:tikz => DiagramTypeMetadata("Symbolator", "https://github.com/pgf-tikz/pgf"),
:umlet => DiagramTypeMetadata("UMLet", "https://github.com/umlet/umlet"),
:vega => DiagramTypeMetadata("Vega", "https://vega.github.io/vega"),
:vegalite => DiagramTypeMetadata("Vega-Lite", "https://vega.github.io/vega-lite"),
Expand Down Expand Up @@ -302,10 +303,11 @@ const LIMITED_DIAGRAM_SUPPORT = MIMEToDiagramTypeMap(
:rackdiag,
:erd,
:graphviz,
:tikz,
:vega,
:vegalite,
),
MIME"image/jpeg"() => (:c4plantuml, :erd, :graphviz, :plantuml, :structurizr, :umlet),
MIME"image/jpeg"() => (:c4plantuml, :erd, :graphviz, :plantuml, :structurizr, :tikz, :umlet),
MIME"image/png"() => (
:blockdiag,
:seqdiag,
Expand All @@ -322,6 +324,7 @@ const LIMITED_DIAGRAM_SUPPORT = MIMEToDiagramTypeMap(
:plantuml,
:structurizr,
:symbolator,
:tikz,
:umlet,
:vega,
:vegalite,
Expand Down

0 comments on commit 59f4008

Please sign in to comment.