diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5b8c433..fa3b804 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Added a `2dpyramids` koan type (rectangular grid of pyramids).
* Added 45-degree rotations to the pyramids (`NE`, `SE`, `SW`, `NW`).
* Added 1d and 2d playing card koans.
+* Added download button for SVG koans (buggy with playing cards).
### Changed
diff --git a/src/lib/Game/ViewKoan.svelte b/src/lib/Game/ViewKoan.svelte
index 3147a9a..591cd9e 100644
--- a/src/lib/Game/ViewKoan.svelte
+++ b/src/lib/Game/ViewKoan.svelte
@@ -60,6 +60,15 @@
svgResults = process1dCards(koanStr);
} else if ($game.koanType === "2dcards") {
svgResults = process2dCards(koanStr);
+ } else if ($game.koanType === "graphviz") {
+ svgResults = "Rendering...";
+ graphviz.dot(koanStr, "svg")
+ .then((svg) => {
+ svgResults = svg;
+ })
+ .catch((err) => {
+ svgResults = err;
+ });
}
let modalDelete = "";
@@ -120,13 +129,7 @@
{:else if $game.koanType === "graphviz"}
{:else}