From 28edb3670453b9aa05ce3b7c98cb052ca69a6e49 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sun, 24 Aug 2025 16:27:50 +0200 Subject: [PATCH] prevent substitution of -- --- astro.config.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/astro.config.mjs b/astro.config.mjs index 8d04bc5..0657566 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -3,6 +3,7 @@ import { defineConfig } from "astro/config"; import starlight from "@astrojs/starlight"; import sitemap from "@astrojs/sitemap"; import matomo from "astro-matomo"; +import remarkSmartypants from "remark-smartypants"; // https://astro.build/config export default defineConfig({ @@ -56,4 +57,11 @@ export default defineConfig({ }), sitemap(), ], + + markdown: { + remarkPlugins: [ + // remove the substitution of -- to – + [remarkSmartypants, { dashes: false }], + ], + }, });