This repository was archived by the owner on Nov 28, 2022. It is now read-only.
Commit 52690a0
feat: fixing some ssr issues with the markdown renderer (#705)
* feat: fixing some ssr issues with the markdown renderer
- always render the copy code button, even on the server
Fixes this issue `Warning: Expected server HTML to contain a matching <button> in <code>.`
- Added `suppressHydrationWarning={true}` to the `<code>` element
The rendered content is always going to be different due to one having
syntax highlighting and one not
* fix: add prettier-ignore to line for ie compatibility
Without this, `prettier --write` always updates to an emoji 🤷♂️
Co-authored-by: Rafe Goldberg <rafegoldberg@gmail.com>1 parent 64a5345 commit 52690a0
File tree
2 files changed
+9
-5
lines changed- packages/markdown
- components/Code
- processor/parse/flavored
2 files changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 25 | + | |
| 26 | + | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
0 commit comments