diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-27 11:19:22 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-27 11:19:22 +0100 |
| commit | 8a352bfd18a54a8c9db996fac72269b658237189 (patch) | |
| tree | f48adc363dc0335b15127f9dfcf596770d9c66d2 | |
| parent | 1a2edf44e1f53ab5d6cf5937e91146b2d97c1619 (diff) | |
chore: add normalize whitespace prism plugin
When passing code sample as children to a component, React add an extra
newline at the end of the sample. Both line-numbers and command-line
plugins use the newline character. So each code blocks was printing an
extra new line at the end. It is not wanted. The normalize whitespace
plugin prevent this.
| -rw-r--r-- | .babelrc | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -43,6 +43,7 @@ "line-highlight", "line-numbers", "match-braces", + "normalize-whitespace", "show-language", "toolbar" ] |
