Add support for pre.-wrap
This commit is contained in:
parent
abd70287d7
commit
bc3bb56c46
|
@ -34,6 +34,10 @@
|
||||||
line-height: $code-line-height;
|
line-height: $code-line-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre.-wrap {
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
||||||
|
|
||||||
pre > code {
|
pre > code {
|
||||||
color: $base-head;
|
color: $base-head;
|
||||||
max-height: auto;
|
max-height: auto;
|
||||||
|
|
|
@ -45,8 +45,9 @@ See: [Tables](#tables-1)
|
||||||
|
|
||||||
### Code
|
### Code
|
||||||
|
|
||||||
| `-setup` | Gray background |
|
|
||||||
| `-box-chars` | Less line height<br>_for box drawing chars_ |
|
| `-box-chars` | Less line height<br>_for box drawing chars_ |
|
||||||
|
| `-setup` | Gray background |
|
||||||
|
| `-wrap` | Enables line-wrapping |
|
||||||
|
|
||||||
See: [Code](#code-1)
|
See: [Code](#code-1)
|
||||||
|
|
||||||
|
@ -197,6 +198,15 @@ function createNode(nodeName: string, options: { key: string }) {
|
||||||
|
|
||||||
Long lines will have scrollbars.
|
Long lines will have scrollbars.
|
||||||
|
|
||||||
|
### Line wrapping
|
||||||
|
|
||||||
|
```js
|
||||||
|
<script>(function(d,s){if(window.Promise&&[].includes&&Object.assign&&window.Map)return;var js,sc=d.getElementsByTagName(s)[0];js=d.createElement(s);js.src='https://cdn.polyfill.io/v2/polyfill.min.js';sc.parentNode.insertBefore(js, sc);}(document,'script'))</script>
|
||||||
|
```
|
||||||
|
{: .-wrap}
|
||||||
|
|
||||||
|
Add `-wrap` to wrap long lines.
|
||||||
|
|
||||||
## Lists
|
## Lists
|
||||||
{: .-three-column}
|
{: .-three-column}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue