From e17bf9c4492075924671ddc757ecc821473a73fc Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Sun, 1 Feb 2026 17:37:57 -0500 Subject: [PATCH] feature: added code renderer blocks that parse markdown code blocks into HTML --- .../layouts/_default/_markup/render-codeblock-abc.html | 4 ++++ .../layouts/_default/_markup/render-codeblock-mermaid.html | 4 ++++ .../layouts/_default/_markup/render-codeblock-tab.html | 4 ++++ 3 files changed, 12 insertions(+) create mode 100644 themes/sukaato/layouts/_default/_markup/render-codeblock-abc.html create mode 100644 themes/sukaato/layouts/_default/_markup/render-codeblock-mermaid.html create mode 100644 themes/sukaato/layouts/_default/_markup/render-codeblock-tab.html diff --git a/themes/sukaato/layouts/_default/_markup/render-codeblock-abc.html b/themes/sukaato/layouts/_default/_markup/render-codeblock-abc.html new file mode 100644 index 0000000..470186f --- /dev/null +++ b/themes/sukaato/layouts/_default/_markup/render-codeblock-abc.html @@ -0,0 +1,4 @@ +
+    {{ .Inner | htmlEscape | safeHTML }}
+
+{{ .Page.Store.Set "hasAbc" true }} \ No newline at end of file diff --git a/themes/sukaato/layouts/_default/_markup/render-codeblock-mermaid.html b/themes/sukaato/layouts/_default/_markup/render-codeblock-mermaid.html new file mode 100644 index 0000000..395dc0f --- /dev/null +++ b/themes/sukaato/layouts/_default/_markup/render-codeblock-mermaid.html @@ -0,0 +1,4 @@ +
+    {{ .Inner | htmlEscape | safeHTML }}
+
+{{ .Page.Store.Set "hasMermaid" true }} \ No newline at end of file diff --git a/themes/sukaato/layouts/_default/_markup/render-codeblock-tab.html b/themes/sukaato/layouts/_default/_markup/render-codeblock-tab.html new file mode 100644 index 0000000..d675969 --- /dev/null +++ b/themes/sukaato/layouts/_default/_markup/render-codeblock-tab.html @@ -0,0 +1,4 @@ +
+    {{ .Inner | htmlEscape | safeHTML }}
+
+{{ .Page.Store.Set "hasTab" true }} \ No newline at end of file