Skip to content

Commit e90a85c

Browse files
committed
fix: inline code not wrapping
1 parent ef21903 commit e90a85c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app/globals.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
--scrollbar-bg: theme('colors.slate.800');
1313
}
1414

15+
code {
16+
word-break: break-all;
17+
}
18+
1519
::-webkit-scrollbar {
1620
width: 6px;
1721
height: 6px;

content/articles/markdown-preview.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
6060
## Code
6161
Random Python code: _`list(map(lambda x: x**2, filter(lambda x: x % 2 == 0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10])))`_
6262

63+
Not code: _`6BEF9A1D57F36C055D7799F810E9A2BB432E8F59C05B33B19C9A0784C76DDBE79838AB2621E49E06D74D5FADB41C4395`_
64+
6365
## Fenced Code Block
6466
```json example.json
6567
{

0 commit comments

Comments
 (0)