mirror of
https://github.com/usememos/memos.git
synced 2025-10-27 14:56:30 +08:00
fix: codeblock highlight
This commit is contained in:
parent
8e6d9b4943
commit
09c50a8419
3 changed files with 2 additions and 8 deletions
|
|
@ -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…
Add table
Reference in a new issue