Skip to content

Commit 1d26a47

Browse files
committed
TS fixes
1 parent 7c7531c commit 1d26a47

File tree

1 file changed

+2
-2
lines changed
  • packages/docusaurus-mdx-loader/src/remark/utils

1 file changed

+2
-2
lines changed

packages/docusaurus-mdx-loader/src/remark/utils/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
import escapeHtml from 'escape-html';
99
import type {Parent} from 'unist';
1010
import type {PhrasingContent, Heading} from 'mdast';
11-
// @ts-expect-error: TODO see https://github.com/microsoft/TypeScript/issues/49721
1211
import type {
1312
MdxJsxAttribute,
1413
MdxJsxAttributeValueExpression,
1514
MdxJsxTextElement,
15+
// @ts-expect-error: TODO see https://github.com/microsoft/TypeScript/issues/49721
1616
} from 'mdast-util-mdx';
1717

1818
export function stringifyContent(
@@ -42,7 +42,7 @@ function mdxJsxTextElementToHtml(
4242
attributes.find((attr) => attr.name === 'class');
4343

4444
const classAttributeString = classAttribute
45-
? `class="${escapeHtml(classAttribute.value)}"`
45+
? `class="${escapeHtml(String(classAttribute.value))}"`
4646
: ``;
4747

4848
const allAttributes = classAttributeString ? ` ${classAttributeString}` : '';

0 commit comments

Comments
 (0)