From 525e4f51976c11b36d5dd7918a95f4021f9bb25e Mon Sep 17 00:00:00 2001 From: Araozu Date: Sun, 19 May 2024 21:47:31 -0500 Subject: [PATCH] Create a state machine with Alpine --- src/components/InteractiveCode.astro | 54 +++++++++++++++++----------- 1 file changed, 34 insertions(+), 20 deletions(-) diff --git a/src/components/InteractiveCode.astro b/src/components/InteractiveCode.astro index 0975b33..3dd8cf3 100644 --- a/src/components/InteractiveCode.astro +++ b/src/components/InteractiveCode.astro @@ -99,7 +99,15 @@ function highlightCode(lines: Array): string { const codeHtml = highlightCode(trimAndDedent(code)); --- -
+
thp code
@@ -117,36 +125,42 @@ const codeHtml = highlightCode(trimAndDedent(code));
-