mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-28 14:08:21 +02:00
fix(mdx-loader): improve mdxJsxTextElementToHtml (#9262)
This commit is contained in:
parent
b3c8f5c929
commit
9868babf75
3 changed files with 45 additions and 5 deletions
|
@ -7,3 +7,5 @@
|
|||
## <i>HTML</i>
|
||||
|
||||
## `inline.code()`
|
||||
|
||||
## some <span className="some-class" style={{border: "solid"}}>styled</span> <strong>heading</strong> <span class="myClass" className="myClassName <> weird char" data-random-attr="456"/> test
|
||||
|
|
|
@ -171,6 +171,11 @@ exports[`toc remark plugin works on non text phrasing content 1`] = `
|
|||
value: '<code>inline.code()</code>',
|
||||
id: 'inlinecode',
|
||||
level: 2
|
||||
},
|
||||
{
|
||||
value: 'some <span class="some-class">styled</span> <strong>heading</strong> <span class="myClassName <> weird char"></span> test',
|
||||
id: 'some-styled-heading--test',
|
||||
level: 2
|
||||
}
|
||||
]
|
||||
|
||||
|
@ -183,6 +188,8 @@ exports[`toc remark plugin works on non text phrasing content 1`] = `
|
|||
## <i>HTML</i>
|
||||
|
||||
## \`inline.code()\`
|
||||
|
||||
## some <span className="some-class" style={{border: "solid"}}>styled</span> <strong>heading</strong> <span class="myClass" className="myClassName <> weird char" data-random-attr="456" /> test
|
||||
"
|
||||
`;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue