Skip to content

Commit

Permalink
feat(codeblock): add monospace font to code block
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarrazin committed Feb 25, 2025
1 parent e23f493 commit a378823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/CodeBlock.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<div class="group relative my-4 rounded-lg">
<pre
class="scrollbar-custom overflow-auto px-5 scrollbar-thumb-gray-500 hover:scrollbar-thumb-gray-400 dark:scrollbar-thumb-white/10 dark:hover:scrollbar-thumb-white/20"><code
class="scrollbar-custom overflow-auto px-5 font-mono scrollbar-thumb-gray-500 hover:scrollbar-thumb-gray-400 dark:scrollbar-thumb-white/10 dark:hover:scrollbar-thumb-white/20"><code
><!-- eslint-disable svelte/no-at-html-tags -->{@html DOMPurify.sanitize(
highlightedCode
)}</code
Expand Down

0 comments on commit a378823

Please sign in to comment.