feat: add syntax highlighting for more languages

This commit is contained in:
Aloxaf 2024-09-25 23:15:49 +08:00
parent 93ff7d26cc
commit 959201e5c4
No known key found for this signature in database
GPG Key ID: 0F8D23F44B277E02
2 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import RemarkGfm from "remark-gfm";
import RehypeHighlight from "rehype-highlight";
import { useRef, useState, RefObject, useEffect, useMemo } from "react";
import { copyToClipboard, useWindowSize } from "../utils";
import "lowlight/lib/all";
import mermaid from "mermaid";
import Locale from "../locales";
import LoadingIcon from "../icons/three-dots.svg";

View File

@ -31,6 +31,7 @@
"html-to-image": "^1.11.11",
"idb-keyval": "^6.2.1",
"lodash-es": "^4.17.21",
"lowlight": "^2.0.0",
"mermaid": "^10.6.1",
"markdown-to-txt": "^2.0.1",
"nanoid": "^5.0.3",