From 71a52581777271d5fdb04ca2b4f1350960c3e5fc Mon Sep 17 00:00:00 2001 From: bluwy Date: Fri, 26 Apr 2024 21:19:35 +0800 Subject: [PATCH] Fix typo --- packages/integrations/mdx/src/rehype-optimize-static.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/integrations/mdx/src/rehype-optimize-static.ts b/packages/integrations/mdx/src/rehype-optimize-static.ts index 1b08f9077a29..0463cd6935b8 100644 --- a/packages/integrations/mdx/src/rehype-optimize-static.ts +++ b/packages/integrations/mdx/src/rehype-optimize-static.ts @@ -198,7 +198,7 @@ function findElementGroups( if (isNodeNonStatic(node)) break; if (node.type === 'element') { - // This node is now (persumably) part of a group, remove it from `allPossibleElements` + // This node is now (presumably) part of a group, remove it from `allPossibleElements` const existed = allPossibleElements.delete(node); // If this node didn't exist in `allPossibleElements`, it's likely that one of its children // are non-static, hence this node can also not be grouped. So we break out here.