Skip to content

Commit

Permalink
docs: actually demo the zero-width space workaround in MDX (#8352)
Browse files Browse the repository at this point in the history
  • Loading branch information
waldyrious committed Nov 24, 2022
1 parent b016686 commit 6be3beb
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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
Expand All @@ -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>
Expand Down

0 comments on commit 6be3beb

Please sign in to comment.