summaryrefslogtreecommitdiffstats
path: root/.babelrc
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-27 11:19:22 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-27 11:19:22 +0100
commit8a352bfd18a54a8c9db996fac72269b658237189 (patch)
treef48adc363dc0335b15127f9dfcf596770d9c66d2 /.babelrc
parent1a2edf44e1f53ab5d6cf5937e91146b2d97c1619 (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.
Diffstat (limited to '.babelrc')
-rw-r--r--.babelrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/.babelrc b/.babelrc
index 95e08b4..4cdf3d2 100644
--- a/.babelrc
+++ b/.babelrc
@@ -43,6 +43,7 @@
"line-highlight",
"line-numbers",
"match-braces",
+ "normalize-whitespace",
"show-language",
"toolbar"
]