From 331ebd42f8d0535b78849ed11d7fc4dfa7f5d508 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Mon, 6 Mar 2023 09:53:13 -0500 Subject: [PATCH] fix: smartypants should be avoided in benchmark! --- packages/markdown/remark/src/index.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/markdown/remark/src/index.ts b/packages/markdown/remark/src/index.ts index 53d683ddf..fa9bd9223 100644 --- a/packages/markdown/remark/src/index.ts +++ b/packages/markdown/remark/src/index.ts @@ -68,11 +68,12 @@ export async function renderMarkdown( .use([]); if (!isPerformanceBenchmark && gfm) { - parser.use(remarkGfm); - } - - if (smartypants) { - parser.use(remarkSmartypants); + if (gfm) { + parser.use(remarkGfm); + } + if (smartypants) { + parser.use(remarkSmartypants); + } } const loadedRemarkPlugins = await Promise.all(loadPlugins(remarkPlugins));