From 46013a55a2010a67485c72a16f92a6c8629106e6 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 20 Apr 2023 18:50:52 +0100 Subject: [PATCH] feat: disable singleDollarTextMath --- src/markdown/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/markdown/index.ts b/src/markdown/index.ts index bad36650..0d4aa015 100644 --- a/src/markdown/index.ts +++ b/src/markdown/index.ts @@ -106,7 +106,9 @@ export const renderPageContent = ( .use(remarkDirectiveRehype) .use(remarkYoutube) .use(remarkMermaid) - .use(remarkMath) + .use(remarkMath, { + singleDollarTextMath: false, + }) .use(remarkRehype, { allowDangerousHtml: true }) .use(rehypeStringify) .use(rehypeRaw)