From 038891628fb94d38d5fd4165cf175c8b5e3340de Mon Sep 17 00:00:00 2001 From: Petra Jaros Date: Mon, 24 Feb 2025 14:55:40 -0500 Subject: [PATCH] Only break within words in `code`s Normal words shouldn't break at random places. --- src/mdx/components.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mdx/components.js b/src/mdx/components.js index d7efb42e1a3..43d4b625b5f 100644 --- a/src/mdx/components.js +++ b/src/mdx/components.js @@ -179,7 +179,7 @@ export const UnorderedList = styled.ul` margin-bottom: 0; } - li { + li > code { word-break: break-all; }