From ea89befdc4e0a771e1d7ec22877a82600885829d Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Fri, 10 Oct 2025 23:29:57 +0200 Subject: [PATCH] keep comments on ``` sh lines --- astro.config.mjs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/astro.config.mjs b/astro.config.mjs index dd360e8..7139e11 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -10,12 +10,21 @@ export default defineConfig({ site: "https://workaround.org", integrations: [ starlight({ + expressiveCode: { + frames: { + removeCommentsWhenCopyingTerminalFrames: false, // keep the commented lines when copying shell snippets + }, + }, lastUpdated: true, title: "ISPmail Guide", social: [ { icon: "github", label: "GitHub", href: "https://github.com/Signum/workaround-astro-starlight" }, { icon: "matrix", label: "Matrix", href: "https://riot.im/app/#/room/#ispmail:matrix.org" }, - { icon: "rss", label: "Feed", href: "https://comentario.workaround.org/api/rss/comments?domain=0f111a27-fbfa-48af-8beb-ab12e612d92f" }, + { + icon: "rss", + label: "Feed", + href: "https://comentario.workaround.org/api/rss/comments?domain=0f111a27-fbfa-48af-8beb-ab12e612d92f", + }, ], // https://expressive-code.com/key-features/word-wrap/#configuration components: {