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:
Sébastien Lorber 2021-02-24 12:34:03 +01:00 committed by GitHub
parent 9e758308bb
commit 6811a72e72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 1071 additions and 12 deletions

View file

@ -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 />