summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts/_default/_markup
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-18 19:37:25 +0200
committerDanilo M. <danix@danix.xyz>2026-04-18 19:37:25 +0200
commitc763d15eaa7c1f8480ce1dd7aea0f86bdf9e0c6e (patch)
tree19b597d4f08565153efcc229bcd343c255bfceb6 /themes/danix-xyz-hacker/layouts/_default/_markup
parent4562b92498bd794da4058a87c0c5cbb0d048f047 (diff)
downloaddanixxyz-c763d15eaa7c1f8480ce1dd7aea0f86bdf9e0c6e.tar.gz
danixxyz-c763d15eaa7c1f8480ce1dd7aea0f86bdf9e0c6e.zip
fix: remove whitespace gaps and restore font size in code blocks
- Add not-prose to .code-block-wrapper to opt out of Tailwind Typography styles (table margins were causing the empty line gaps above/below code) - Restore font-size: 0.875em on pre and code since not-prose removed the Typography plugin's size normalization Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/_default/_markup')
-rw-r--r--themes/danix-xyz-hacker/layouts/_default/_markup/render-codeblock.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/danix-xyz-hacker/layouts/_default/_markup/render-codeblock.html b/themes/danix-xyz-hacker/layouts/_default/_markup/render-codeblock.html
index 2b48840..6f3e357 100644
--- a/themes/danix-xyz-hacker/layouts/_default/_markup/render-codeblock.html
+++ b/themes/danix-xyz-hacker/layouts/_default/_markup/render-codeblock.html
@@ -4,7 +4,7 @@
{{- if not $hasLang -}}{{- $highlightLang = "text" -}}{{- end -}}
{{- $opts := dict "lineNos" true "lineNumbersInTable" true -}}
-<div class="code-block-wrapper">
+<div class="code-block-wrapper not-prose">
{{- if $hasLang -}}
<div class="code-header" data-lang="{{ $lang }}">
<span class="code-lang-label">{{ $lang }}</span>
@@ -18,6 +18,6 @@
</div>
{{- end -}}
<div class="code-body">
- {{ highlight .Inner $highlightLang $opts }}
+{{- highlight .Inner $highlightLang $opts -}}
</div>
</div>