Skip to content

Commit

Permalink
Fix code highlighting (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugos68 authored Jan 14, 2025
1 parent 23fd9fe commit e713eba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions sites/floating-ui-svelte.vercel.app/src/app.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,3 @@ footer .anchor {
transform: translateY(0px);
}
}

/* Shiki Highlighting --- */

html.dark .shiki,
html.dark .shiki span {
color: var(--shiki-dark) !important;
background-color: var(--shiki-dark-bg) !important;
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const highlightedLineNumbers = $derived(
const renderedCode = $derived(
highlighter.codeToHtml(code.trim(), {
lang,
lang: lang,
theme: MoonlightDark as ThemeRegistration,
transformers: [
/**
Expand Down

0 comments on commit e713eba

Please sign in to comment.