Feat/code blocks with copy

This commit is contained in:
Krish Parekh
2025-12-07 11:08:54 +05:30
committed by GitHub
parent b4640ac5e4
commit 641d5f36d2
3 changed files with 68 additions and 7 deletions
+6 -1
View File
@@ -139,13 +139,18 @@
}
}
/* Prevent italic styling in Shiki code blocks */
.shiki,
.shiki span {
font-style: normal !important;
}
@media (prefers-color-scheme: dark) {
.shiki,
.shiki span {
color: var(--shiki-dark) !important;
background-color: var(--shiki-dark-bg) !important;
/* Optional, if you also want font styles */
font-style: var(--shiki-dark-font-style) !important;
font-weight: var(--shiki-dark-font-weight) !important;
text-decoration: var(--shiki-dark-text-decoration) !important;
}