Skip to content

Commit 98379c0

Browse files
authored
Docs: add word wrapping to code blocks (#759)
Removes horizontal scroll bar from long code lines. See System Prompt page for an example: <img width="737" height="466" alt="Horizontal scrolling in System Prompt page" src="https://github.com/user-attachments/assets/6cce96b1-9153-4446-9270-3ab4b7eab992" /> This also includes a small change in VS Code extensions page, that removes `[mdbook-shiki] Language 'ssh' not available, skipping` error message.
1 parent dab90ff commit 98379c0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/theme/custom.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ pre > code {
251251
display: block;
252252
padding: 0.9rem 1rem;
253253
font-family: var(--font-monospace);
254+
white-space: pre-wrap;
254255
}
255256

256257
/* Code blocks inside lists */

docs/vscode-extension.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ If you haven't configured the SSH host yet:
6767

6868
1. Open `~/.ssh/config` and add:
6969

70-
```ssh
70+
```bash
7171
Host myserver
7272
HostName 192.168.1.100
7373
User username

0 commit comments

Comments
 (0)