From a79b64b35cfae23154532d16322332eed6b383af Mon Sep 17 00:00:00 2001 From: Joris Kraak Date: Thu, 21 Mar 2024 16:40:04 +0100 Subject: [PATCH 1/2] style: fix code formatting This was committed (and merged) incorrectly in #56. The corresponding workflow was previously not marked as required. --- src/Kroki.jl | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/Kroki.jl b/src/Kroki.jl index 857778c..3eede53 100644 --- a/src/Kroki.jl +++ b/src/Kroki.jl @@ -253,7 +253,8 @@ DIAGRAM_TYPE_METADATA = Dict{Symbol, DiagramTypeMetadata}( :structurizr => DiagramTypeMetadata("Structurizr", "https://structurizr.com"), :svgbob => DiagramTypeMetadata("Svgbob", "https://ivanceras.github.io/content/Svgbob.html"), - :symbolator => DiagramTypeMetadata("Symbolator", "https://github.com/kevinpt/symbolator"), + :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"), @@ -334,17 +335,8 @@ const LIMITED_DIAGRAM_SUPPORT = MIMEToDiagramTypeMap( :vegalite, :wireviz, ), - MIME"image/svg+xml"() => ( - :bpmn, - :bytefield, - :d2, - :dbml, - :excalidraw, - :nomnoml, - :pikchr, - :svgbob, - :wavedrom - ), + MIME"image/svg+xml"() => + (:bpmn, :bytefield, :d2, :dbml, :excalidraw, :nomnoml, :pikchr, :svgbob, :wavedrom), MIME"text/plain"() => (:c4plantuml, :plantuml, :structurizr), MIME"text/plain; charset=utf-8"() => (:c4plantuml, :plantuml, :structurizr), ) From 76e027cc3f960f78c6de2ccf4f4a0ce9d47f5117 Mon Sep 17 00:00:00 2001 From: Joris Kraak Date: Thu, 21 Mar 2024 16:44:53 +0100 Subject: [PATCH 2/2] refactor(diagrams): correct "TikZ/PGF" was incorrectly marked as "Symbolator" in #56 as a result of copy and pasting/duplicating the line when adding TikZ/PGF support. --- src/Kroki.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kroki.jl b/src/Kroki.jl index 3eede53..6f79364 100644 --- a/src/Kroki.jl +++ b/src/Kroki.jl @@ -255,7 +255,7 @@ DIAGRAM_TYPE_METADATA = Dict{Symbol, DiagramTypeMetadata}( 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"), + :tikz => DiagramTypeMetadata("TikZ/PGF", "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"),