Skip to content

Commit

Permalink
Add horizontal scrolling to "large" code blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
noteed committed Jul 23, 2024
1 parent 374db41 commit f41bcc0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions content/tutorial.slab
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ page
.switcher
style.
.wrap {white-space: pre-wrap;}
.clip { overflow-x: auto; }
pre
code.wrap
:escape-html
Expand Down Expand Up @@ -92,14 +93,14 @@ page

p Here's a way to download it, rename it to <code>slab</code>, and mark it as an executable file:

pre
pre.clip
code.
$ curl -sL https://github.com/hypered/slab/releases/download/v0.0.3.0-alpha/slab-v0.0.3.0-linux-x86-64-musl -o /bin/slab
$ chmod +x /bin/slab

p The <code>slab</code> binary supports a <code>--help</code> flag:

pre
pre.clip
code
| $ slab --help
|
Expand Down

0 comments on commit f41bcc0

Please sign in to comment.