Skip to content

Commit b310adc

Browse files
committed
Fix tables and lists in reference items
1 parent 77f095b commit b310adc

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/layouts/ReferenceItemLayout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const seenParams: Record<string, true> = {};
9090
<div class="col-span-9 xl:min-w-[1000px]">
9191
<div
9292
set:html={description}
93-
class="[&_a]:text-type-magenta-dark [&_a]:!decoration-type-magenta-dark mb-xl reference-item"
93+
class="[&_a]:text-type-magenta-dark [&_a]:!decoration-type-magenta-dark mb-xl reference-item rendered-markdown"
9494
/>
9595
{
9696
examples && (

styles/global.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ a {
204204
code {
205205
@extend .text-body-mono;
206206
font-size: inherit;
207+
white-space: nowrap;
207208
background-color: var(--bg-gray-80);
208209
border-radius: 20px;
209210
padding: 0 var(--spacing-xxs);

styles/markdown.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@
7575
table {
7676
margin: var(--spacing-md) 0;
7777
}
78+
td, th {
79+
vertical-align: top;
80+
}
7881

7982
hr + h2,
8083
hr + h3,

0 commit comments

Comments
 (0)