mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: codeblock highlight
This commit is contained in:
@@ -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";
|
||||
|
Reference in New Issue
Block a user