-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v2] content parsing issue inside the markdown table #3758
Labels
external
This issue is caused by an external dependency and not Docusaurus.
Comments
Simek
added
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
labels
Nov 16, 2020
It looks like MDX is not able to parse it correctly, even using the playground https://mdxjs.com/playground/, so it seems it's not our fault ### `color`
Color of the text (iOS), or background color of the button (Android).
| Type | Default |
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [color](colors) | <ins style={{background: '#2196F3'}} className="color-box" /> `'#2196F3'` <div className="label android">Android</div><hr/><ins style={{background: '#007AFF'}} className="color-box" /> `'#007AFF'` <div className="label ios">iOS</div> | becomes <tbody parentName="table">
<tr parentName="tbody">
<td
parentName="tr"
{...{
align: null
}}
>
<a
parentName="td"
{...{
href: "colors"
}}
>{`color`}</a>
</td>
<td
parentName="tr"
{...{
align: null
}}
>
<ins
style={{
background: "#2196F3"
}}
className="color-box"
/>{" "}
`'#2196F3'` <div className="label android">Android</div>
<hr />
<ins
style={{
background: "#007AFF"
}}
className="color-box"
/>
{` `}
<inlineCode parentName="td">{`'#007AFF'`}</inlineCode>
{` `}
<div className="label ios">{`iOS`}</div>
</td>
</tr>
</tbody> For those usecases it may be better to avoid interleaved of MD inside of JSX in table contents. Maybe you can just replace those cases by |
Closing in favor of #4029. MDX 2.0 allows interleaving JSX with Markdown. |
Josh-Cena
added
external
This issue is caused by an external dependency and not Docusaurus.
and removed
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
labels
Mar 19, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug Report
It looks like on the React Native website we currently experiencing MDX parsing issue inside the markdown table:
One of color hashes is not rendered in code block besides that the both entries are using the same code:
Issue preview
Have you read the Contributing Guidelines on issues?
Yes.
To Reproduce
(Write your steps here:)
#2196F3
formatting in the tableOr
#2196F3
formatting in the tableExpected behavior
#2196F3
string should be formatted as code block.Actual Behavior
#2196F3
is not correctly formatted.Your Environment
2.0.0-alpha.66
Reproducible Demo
The text was updated successfully, but these errors were encountered: