File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 8
8
import escapeHtml from 'escape-html' ;
9
9
import type { Parent } from 'unist' ;
10
10
import type { PhrasingContent , Heading } from 'mdast' ;
11
- // @ts -expect-error: TODO see https://github.com/microsoft/TypeScript/issues/49721
12
11
import type {
13
12
MdxJsxAttribute ,
14
13
MdxJsxAttributeValueExpression ,
15
14
MdxJsxTextElement ,
15
+ // @ts -expect-error: TODO see https://github.com/microsoft/TypeScript/issues/49721
16
16
} from 'mdast-util-mdx' ;
17
17
18
18
export function stringifyContent (
@@ -42,7 +42,7 @@ function mdxJsxTextElementToHtml(
42
42
attributes . find ( ( attr ) => attr . name === 'class' ) ;
43
43
44
44
const classAttributeString = classAttribute
45
- ? `class="${ escapeHtml ( classAttribute . value ) } "`
45
+ ? `class="${ escapeHtml ( String ( classAttribute . value ) ) } "`
46
46
: `` ;
47
47
48
48
const allAttributes = classAttributeString ? ` ${ classAttributeString } ` : '' ;
You can’t perform that action at this time.
0 commit comments