From 9f0d50d55c643cc518ee1ad96ea13ff57eeec598 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Tue, 14 Feb 2023 12:30:42 -0500 Subject: [PATCH] fix: remove unneeded html-escaper --- packages/integrations/markdoc/components/astroNode.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/integrations/markdoc/components/astroNode.ts b/packages/integrations/markdoc/components/astroNode.ts index a913459b4..8f6420342 100644 --- a/packages/integrations/markdoc/components/astroNode.ts +++ b/packages/integrations/markdoc/components/astroNode.ts @@ -1,7 +1,6 @@ import type { ComponentInstance } from 'astro'; import type { RenderableTreeNode, Tag } from '@markdoc/markdoc'; import Markdoc from '@markdoc/markdoc'; -import { escape } from 'html-escaper'; export type ComponentRenderer = | ComponentInstance['default'] @@ -28,7 +27,7 @@ export function createAstroNode( components: Record = {} ): AstroNode { if (typeof node === 'string' || typeof node === 'number') { - return escape(String(node)); + return String(node); } else if (node === null || typeof node !== 'object' || !Markdoc.Tag.isTag(node)) { return ''; }