From d018f74a27ecc5c810287e84539916a1b4cd26cb Mon Sep 17 00:00:00 2001 From: Innei Date: Wed, 27 Dec 2023 11:17:16 +0800 Subject: [PATCH] fix: rss route export Signed-off-by: Innei --- src/app/feed/route.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/feed/route.tsx b/src/app/feed/route.tsx index 112ff1edd2..5d7f737e0f 100644 --- a/src/app/feed/route.tsx +++ b/src/app/feed/route.tsx @@ -161,7 +161,7 @@ const KateXBlockRule: MarkdownToJSX.Rule = { }, } -export const AlertsRule: MarkdownToJSX.Rule = { +const AlertsRule: MarkdownToJSX.Rule = { match: blockRegex(ALERT_BLOCKQUOTE_R), order: Priority.HIGH, parse(capture) { @@ -191,7 +191,7 @@ const shouldCatchContainerName = [ 'note', ].join('|') -export const ContainerRule: MarkdownToJSX.Rule = { +const ContainerRule: MarkdownToJSX.Rule = { match: blockRegex( new RegExp( `^\\s*::: *(?(${shouldCatchContainerName})) *({(?(.*?))})? *\n(?[\\s\\S]+?)\\s*::: *(?:\n *)+\n?`,