fix: codeblock highlight

This commit is contained in:
Johnny
2025-03-30 23:49:51 +08:00
parent 8e6d9b4943
commit 09c50a8419
3 changed files with 2 additions and 8 deletions

View File

@@ -6,6 +6,8 @@ import toast from "react-hot-toast";
import { cn } from "@/utils";
import MermaidBlock from "./MermaidBlock";
import { BaseProps } from "./types";
import "highlight.js/styles/atom-one-dark.css";
import "highlight.js/styles/github.css";
// Special languages that are rendered differently.
enum SpecialLanguage {

View File

@@ -1,7 +0,0 @@
html.dark {
@import "highlight.js/styles/atom-one-dark.css";
}
html:not(.dark) {
@import "highlight.js/styles/github.css";
}

View File

@@ -4,7 +4,6 @@ import { observer } from "mobx-react-lite";
import { createRoot } from "react-dom/client";
import { Toaster } from "react-hot-toast";
import { RouterProvider } from "react-router-dom";
import "./css/highlight.css";
import "./css/tailwind.css";
import "./i18n";
import router from "./router";