Skip to content

Commit e713eba

Browse files
authored
Fix code highlighting (#163)
1 parent 23fd9fe commit e713eba

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

sites/floating-ui-svelte.vercel.app/src/app.pcss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,3 @@ footer .anchor {
236236
transform: translateY(0px);
237237
}
238238
}
239-
240-
/* Shiki Highlighting --- */
241-
242-
html.dark .shiki,
243-
html.dark .shiki span {
244-
color: var(--shiki-dark) !important;
245-
background-color: var(--shiki-dark-bg) !important;
246-
}

sites/floating-ui-svelte.vercel.app/src/lib/components/CodeBlock/CodeBlock.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const highlightedLineNumbers = $derived(
4141
4242
const renderedCode = $derived(
4343
highlighter.codeToHtml(code.trim(), {
44-
lang,
44+
lang: lang,
4545
theme: MoonlightDark as ThemeRegistration,
4646
transformers: [
4747
/**

0 commit comments

Comments
 (0)