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; +}