docs: actually demo the zero-width space workaround in MDX (#8352)

This commit is contained in:
Waldir Pimenta 2022-11-24 10:00:39 +00:00 committed by GitHub
parent b016686c22
commit 6be3beb8c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -266,7 +266,7 @@ Use JSX for the rest of the line, or prefix the line with some plain text:
```jsx
<span style={{color: 'red'}}>Use JSX for the paragraph</span> to stop <i>worrying about</i> <b>Markdown</b>
&#8203;<span style={{color: 'red'}}>← This is a zero-width space</span> and afterwards <i>Markdown</i> <b>works</b>
&#8203;<span style={{color: 'red'}}>← This is a zero-width space</span> and afterwards _Markdown_ **works**
```
```mdx-code-block
@ -276,7 +276,7 @@ Use JSX for the rest of the line, or prefix the line with some plain text:
<span style={{color: 'red'}}>Use JSX for the paragraph</span> to stop <i>worrying about</i> <b>Markdown</b>
&#8203;<span style={{color: 'red'}}>← This is a zero-width space</span> and afterwards <i>Markdown</i> <b>works</b>
&#8203;<span style={{color: 'red'}}>← This is a zero-width space</span> and afterwards _Markdown_ **works**
</BrowserWindow>
</div>