better markdown support, minor layout fixes
This commit is contained in:
15
src/app/_components/CodeHighlightSyle.tsx
Normal file
15
src/app/_components/CodeHighlightSyle.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
'use client'
|
||||
import { useTheme } from "next-themes";
|
||||
|
||||
export function CodeHighlightStyle() {
|
||||
const { theme } = useTheme()
|
||||
if (theme == 'dark') {
|
||||
return (
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.3.2/build/styles/atelier-lakeside-dark.min.css"/>
|
||||
)
|
||||
} else {
|
||||
return (
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.3.2/build/styles/atelier-lakeside-light.min.min.css"/>
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user