From 0ba039fd807533c4c00e2542b4d36f14c1156071 Mon Sep 17 00:00:00 2001 From: Joey Chen <142381267+JoeyC-Dev@users.noreply.github.com> Date: Tue, 24 Mar 2026 19:44:33 +0000 Subject: [PATCH] fix: align GitHub syntax mapping with admonition types Signed-off-by: Joey Chen <142381267+JoeyC-Dev@users.noreply.github.com> --- astro.config.mjs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/astro.config.mjs b/astro.config.mjs index 621c415998..4623760844 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -107,7 +107,18 @@ export default defineConfig({ remarkMath, remarkReadingTime, remarkExcerpt, - remarkGithubAdmonitionsToDirectives, + [ + remarkGithubAdmonitionsToDirectives, + { + mapping: { + NOTE: "note", + TIP: "tip", + IMPORTANT: "important", + CAUTION: "caution", + WARNING: "warning", + }, + }, + ], remarkDirective, remarkSectionize, parseDirectiveNode,