From 21025cab50339086757c85209adfdf05af45c6a4 Mon Sep 17 00:00:00 2001 From: grassblock Date: Sat, 17 May 2025 18:11:54 +0800 Subject: [PATCH] fix: spoiler now work in paragraph wrapped elements --- src/components/shortcodes/Spoiler.astro | 12 +++++++++++- src/content/pages/test.mdx | 5 +++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/components/shortcodes/Spoiler.astro b/src/components/shortcodes/Spoiler.astro index 7a7dcff..319f3f6 100644 --- a/src/components/shortcodes/Spoiler.astro +++ b/src/components/shortcodes/Spoiler.astro @@ -1,11 +1,21 @@ --- const { tip = '' } = Astro.props --- -{/* TODO: make it work in paragraph wrapped elements */}