From 7f7bdfa7496f80fcd621c6963ba18708f4755845 Mon Sep 17 00:00:00 2001 From: Arity-T Date: Wed, 22 Jan 2025 12:16:28 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BD=D0=BE=D1=81=20?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=BE=D0=BA=20=D0=B2=20=D0=B1=D0=BB=D0=BE?= =?UTF-8?q?=D0=BA=D0=B0=D1=85=20=D0=BA=D0=BE=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/stylesheets/extra.css | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 6cc257a..26f6fd5 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -4,4 +4,18 @@ .md-footer { margin-top: 50px; -} \ No newline at end of file +} + +/* Достаточно добавить { .code-wrap } к блоку кода, чтобы включить автоперенос строк. + attr_list, очевидно, должен быть подключен в markdown_extensions. + + Пример: + + ```sh { .code-wrap } + *very long line of code here* + ``` +*/ +.code-wrap code { + white-space: pre-wrap; + word-break: break-word; +}