Перенос строк в блоках кода
This commit is contained in:
@@ -4,4 +4,18 @@
|
||||
|
||||
.md-footer {
|
||||
margin-top: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Достаточно добавить { .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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user