Skip to content

Commit

Permalink
Fix self-closing div and Shiki configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
metaboulie committed Dec 27, 2024
1 parent 1fa3e11 commit 04564e1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<div class="absolute inset-0 -z-10">
<div
class="absolute inset-0 bg-[radial-gradient(circle_at_center,_var(--tw-gradient-stops))] from-zinc-800/20 via-zinc-900 to-zinc-900"
/>
></div>
</div>
</section>

Expand Down
13 changes: 12 additions & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,18 @@ const config = {
highlight: {
async highlighter(code, lang) {
const highlighter = await shiki.getHighlighter({
theme: 'nord'
theme: 'nord',
langs: [
'javascript',
'typescript',
'svelte',
'html',
'css',
'json',
'markdown',
'bash',
'yaml'
]
});
return highlighter.codeToHtml(code, { lang });
}
Expand Down

0 comments on commit 04564e1

Please sign in to comment.