Skip to content

Commit f68605b

Browse files
committed
fix: add dark theme support for markdown renderer
1 parent 8df4af1 commit f68605b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

custom/MarkdownRenderer.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
prose-hr:my-1
1313
leading-tight
1414
dark: dark:text-gray-300
15+
dark:[&_th]:text-white
16+
dark:[&_td]:text-white
17+
dark:[&_thead]:border-b-gray-600
18+
dark:[&_code]:text-white
1519
dark:[&_h1]:text-white dark:[&_h2]:text-gray-100 dark:[&_h3]:text-gray-200
1620
dark:[&_a]:text-white dark:[&_a:hover]:text-white
1721
dark:[&_pre]:bg-black dark:[&_pre]:border dark:[&_border-slate-800]

0 commit comments

Comments
 (0)