Skip to content

Commit 8df4af1

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

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

custom/MarkdownRenderer.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,14 @@
1111
prose-pre:my-0
1212
prose-hr:my-1
1313
leading-tight
14-
"
15-
></div>
14+
dark: dark:text-gray-300
15+
dark:[&_h1]:text-white dark:[&_h2]:text-gray-100 dark:[&_h3]:text-gray-200
16+
dark:[&_a]:text-white dark:[&_a:hover]:text-white
17+
dark:[&_pre]:bg-black dark:[&_pre]:border dark:[&_border-slate-800]
18+
dark:[&_strong]:text-white
19+
dark:[&_em]:text-gray-400
20+
dark:[&_del]:text-gray-600">
21+
</div>
1622
</template>
1723

1824
<script setup lang="ts">

0 commit comments

Comments
 (0)