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