Skip to content

Commit f51cc9c

Browse files
Move custom prose style to MarkdownRenderer.svelte, fix hover modifier order
1 parent f57977f commit f51cc9c

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/app.css

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,3 @@
160160
cursor: pointer;
161161
}
162162
}
163-
164-
@layer components {
165-
.prose {
166-
a {
167-
/* Has to be important to override the default prose styles */
168-
@apply !text-primary;
169-
}
170-
}
171-
}

src/lib/components/MarkdownRenderer.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<svelte:element
3232
this={inline ? "span" : "div"}
3333
class={cn(
34-
"prose dark:prose-invert prose-a:[overflow-wrap:_anywhere] prose-a:no-underline prose-a:underline-offset-4 hover:prose-a:underline prose-code:[overflow-wrap:_anywhere] prose-li:my-1",
34+
"prose dark:prose-invert prose-a:[overflow-wrap:_anywhere] prose-a:text-primary prose-a:no-underline prose-a:underline-offset-4 prose-a:hover:underline prose-code:[overflow-wrap:_anywhere] prose-li:my-1",
3535
"prose-pre:text-wrap", // remove with TODO
3636
inline && "*:inline",
3737
className

0 commit comments

Comments
 (0)