Skip to content

Commit

Permalink
Allow code blocks to word wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
cy-by committed Sep 15, 2024
1 parent b05c279 commit d6f8c80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion posts/test.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Markdown egg test
title: Markdown test
date: 2024-09-07
---

Expand Down
2 changes: 2 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ pre {
border-radius: var(--radius);
max-inline-size: 120ch;
background-color: #24273a;
white-space: pre-wrap;
word-break: break-word;

> code {
background-color: transparent;
Expand Down

0 comments on commit d6f8c80

Please sign in to comment.