fix: smartypants should be avoided in benchmark!

This commit is contained in:
bholmesdev 2023-03-06 09:53:13 -05:00
parent dda8cf154d
commit 331ebd42f8

View file

@ -68,12 +68,13 @@ export async function renderMarkdown(
.use([]); .use([]);
if (!isPerformanceBenchmark && gfm) { if (!isPerformanceBenchmark && gfm) {
if (gfm) {
parser.use(remarkGfm); parser.use(remarkGfm);
} }
if (smartypants) { if (smartypants) {
parser.use(remarkSmartypants); parser.use(remarkSmartypants);
} }
}
const loadedRemarkPlugins = await Promise.all(loadPlugins(remarkPlugins)); const loadedRemarkPlugins = await Promise.all(loadPlugins(remarkPlugins));
const loadedRehypePlugins = await Promise.all(loadPlugins(rehypePlugins)); const loadedRehypePlugins = await Promise.all(loadPlugins(rehypePlugins));