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

@ -133,6 +133,7 @@ import ThemedImage from '@theme/ThemedImage';
/>;
```
```mdx-code-block
import useBaseUrl from '@docusaurus/useBaseUrl';
import ThemedImage from '@theme/ThemedImage';
@ -143,3 +144,4 @@ import ThemedImage from '@theme/ThemedImage';
dark: useBaseUrl('/img/docusaurus_speed.svg'),
}}
/>
```