Commit 2be72fa
committed
Fix line break rendering
The old version of react-syntax-highlighter would ignore newline
characters. This version renders them in the DOM instead. I had to
update a component to remove newline characters from the ends of
line strings so they would render as expected.1 parent a9608b7 commit 2be72fa
File tree
1 file changed
+4
-2
lines changed1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| |||
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
141 | | - | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
| |||
0 commit comments