Skip to content

Commit e3024bb

Browse files
committed
fix ascii art rendering: preserve whitespace in code blocks
1 parent bd64b9d commit e3024bb

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

docs/examples/02_curved_slicing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Traditional planar slicing creates horizontal layers. For curved surfaces like s
2121

2222
**Curved slicing** generates toolpaths that follow the surface curvature:
2323

24-
```
24+
```text
2525
Planar slicing: Curved slicing:
2626
___________ _________
2727
|___________| / \

docs/stylesheets/extra.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
font-size: 0.85em;
1212
}
1313

14+
/* Preserve whitespace in code blocks for ASCII art */
15+
.md-typeset pre code {
16+
white-space: pre;
17+
font-family: 'JetBrains Mono', 'Courier New', monospace;
18+
}
19+
1420
/* API docs styling */
1521
.doc-heading {
1622
font-weight: 600;

0 commit comments

Comments
 (0)