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));