From 8a352bfd18a54a8c9db996fac72269b658237189 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 27 Jan 2022 11:19:22 +0100 Subject: 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. --- .babelrc | 1 + 1 file changed, 1 insertion(+) (limited to '.babelrc') 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" ] -- cgit v1.2.3