mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-30 09:27:04 +02:00
feat(v2): ability to "escape" JSX in MDX files as code blocks (#4278)
* Fix MDX Crowdin issues by wrapping complex JSX in code blocks * Add a remark plugin to unwrap MDX code blocks * Update MDX Crowdin doc
This commit is contained in:
parent
9e758308bb
commit
6811a72e72
13 changed files with 1071 additions and 12 deletions
|
@ -37,6 +37,7 @@ I can write **Markdown** alongside my _JSX_!
|
|||
|
||||
Notice how it renders both the markup from your React component and the Markdown syntax:
|
||||
|
||||
```mdx-code-block
|
||||
export const Highlight = ({children, color}) => (
|
||||
<span
|
||||
style={{
|
||||
|
@ -57,6 +58,7 @@ export const Highlight = ({children, color}) => (
|
|||
I can write **Markdown** alongside my _JSX_!
|
||||
|
||||
</BrowserWindow>
|
||||
```
|
||||
|
||||
<br />
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue