feat: add shiki to markdown rendering for code highlighting

This commit is contained in:
2026-01-30 17:56:57 -06:00
parent b3bb769c47
commit b7f76c5847
4 changed files with 71 additions and 1 deletions

View File

@@ -60,6 +60,29 @@
color var(--theme-transition),
border-color var(--theme-transition);
}
:root {
--shiki-fg: var(--shiki-light);
--shiki-bg: var(--color-neutral-200);
}
.dark {
--shiki-fg: var(--shiki-dark);
--shiki-bg: var(--color-neutral-800);
}
pre.shiki {
background-color: var(--shiki-bg) !important;
color: var(--shiki-fg) !important;
}
pre.shiki span {
color: var(--shiki-light);
}
.dark pre.shiki span {
color: var(--shiki-dark) !important;
}
}
/* Content reveal animations */