From 3fcd4a144662a2cc9cf909d167125645878532c1 Mon Sep 17 00:00:00 2001 From: Liu Yihao Date: Tue, 8 Oct 2024 07:04:26 +0800 Subject: [PATCH] docs: limit code block width --- docs/extra.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/extra.css b/docs/extra.css index 1312099..5441397 100644 --- a/docs/extra.css +++ b/docs/extra.css @@ -20,4 +20,6 @@ .md-typeset pre > code { max-height: var(--md-codeblock-height, 20rem); /* 5rem will be used as a fallback value */ + white-space : pre-wrap !important; + word-break: break-word; }