Skip to content

Commit 09c50a8

Browse files
committed
fix: codeblock highlight
1 parent 8e6d9b4 commit 09c50a8

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

web/src/components/MemoContent/CodeBlock.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import toast from "react-hot-toast";
66
import { cn } from "@/utils";
77
import MermaidBlock from "./MermaidBlock";
88
import { BaseProps } from "./types";
9+
import "highlight.js/styles/atom-one-dark.css";
10+
import "highlight.js/styles/github.css";
911

1012
// Special languages that are rendered differently.
1113
enum SpecialLanguage {

web/src/css/highlight.css

Lines changed: 0 additions & 7 deletions
This file was deleted.

web/src/main.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { observer } from "mobx-react-lite";
44
import { createRoot } from "react-dom/client";
55
import { Toaster } from "react-hot-toast";
66
import { RouterProvider } from "react-router-dom";
7-
import "./css/highlight.css";
87
import "./css/tailwind.css";
98
import "./i18n";
109
import router from "./router";

0 commit comments

Comments
 (0)