From df99ead67a4daff437a0e9abb6a1bd27cf9362e0 Mon Sep 17 00:00:00 2001 From: Maciej Jur Date: Sat, 8 Apr 2023 16:11:36 +0200 Subject: [PATCH] Configure syntax highlighting --- astro.config.ts | 5 ++++- src/pages/aoc/[...slug].astro | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/astro.config.ts b/astro.config.ts index e91ace5..621a005 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -11,6 +11,9 @@ export default defineConfig({ ], rehypePlugins: [ [rehypeKatex, {output: 'mathml'}] - ] + ], + shikiConfig: { + theme: 'min-light' + } } }); diff --git a/src/pages/aoc/[...slug].astro b/src/pages/aoc/[...slug].astro index e63b320..18048bb 100644 --- a/src/pages/aoc/[...slug].astro +++ b/src/pages/aoc/[...slug].astro @@ -8,8 +8,8 @@ export async function getStaticPaths () { } const { entry } = Astro.props; -const { Content } = await entry.render(); +const { Content, headings } = await entry.render(); --- -
+