Commit 09c50a84 authored by Johnny's avatar Johnny

fix: codeblock highlight

parent 8e6d9b49
...@@ -6,6 +6,8 @@ import toast from "react-hot-toast"; ...@@ -6,6 +6,8 @@ import toast from "react-hot-toast";
import { cn } from "@/utils"; import { cn } from "@/utils";
import MermaidBlock from "./MermaidBlock"; import MermaidBlock from "./MermaidBlock";
import { BaseProps } from "./types"; import { BaseProps } from "./types";
import "highlight.js/styles/atom-one-dark.css";
import "highlight.js/styles/github.css";
// Special languages that are rendered differently. // Special languages that are rendered differently.
enum SpecialLanguage { enum SpecialLanguage {
......
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"; ...@@ -4,7 +4,6 @@ import { observer } from "mobx-react-lite";
import { createRoot } from "react-dom/client"; import { createRoot } from "react-dom/client";
import { Toaster } from "react-hot-toast"; import { Toaster } from "react-hot-toast";
import { RouterProvider } from "react-router-dom"; import { RouterProvider } from "react-router-dom";
import "./css/highlight.css";
import "./css/tailwind.css"; import "./css/tailwind.css";
import "./i18n"; import "./i18n";
import router from "./router"; import router from "./router";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment