fix: codeblock highlight

pull/4575/head
Johnny 2 months ago
parent 8e6d9b4943
commit 09c50a8419

@ -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 {

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

@ -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";

Loading…
Cancel
Save