Skip to content

Commit

Permalink
Docs: Actually demo the zero-width space workaround in MDX
Browse files Browse the repository at this point in the history
  • Loading branch information
waldyrious authored Nov 17, 2022
1 parent ca3dba5 commit f963ea2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
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 f963ea2

Please sign in to comment.