From 872205406e407ac39142999b1c548749a025ca7a Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Thu, 1 Jan 2026 21:50:23 +0100 Subject: [PATCH] Remove padding from markdown code blocks --- .pi/hooks/status-demo.ts | 11 + out.html | 3272 +++++++++++++++++ .../src/core/export-html/template.css | 1 - 3 files changed, 3283 insertions(+), 1 deletion(-) create mode 100644 .pi/hooks/status-demo.ts create mode 100644 out.html diff --git a/.pi/hooks/status-demo.ts b/.pi/hooks/status-demo.ts new file mode 100644 index 00000000..a9720f80 --- /dev/null +++ b/.pi/hooks/status-demo.ts @@ -0,0 +1,11 @@ +import type { HookAPI } from "@mariozechner/pi-coding-agent"; + +export default function (pi: HookAPI) { + pi.on("turn_start", async (_event, ctx) => { + ctx.ui.setStatus("demo", "๐Ÿ”„ Thinking..."); + }); + + pi.on("turn_end", async (_event, ctx) => { + ctx.ui.setStatus("demo", "โœ“ Ready"); + }); +} diff --git a/out.html b/out.html new file mode 100644 index 00000000..7642e6cd --- /dev/null +++ b/out.html @@ -0,0 +1,3272 @@ + + + + + + Session Export + + + + + +
+ +
+
+
+
+
+ +
+
+ + + + + + + + + + + + + diff --git a/packages/coding-agent/src/core/export-html/template.css b/packages/coding-agent/src/core/export-html/template.css index 4bcbfbc2..9416b69a 100644 --- a/packages/coding-agent/src/core/export-html/template.css +++ b/packages/coding-agent/src/core/export-html/template.css @@ -621,7 +621,6 @@ display: block; background: none; color: var(--mdCodeBlock); - padding: var(--line-height); } .markdown-content blockquote {