From 6235bae6c52d460645896ac7dd0f8d6fb6717007 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 20 Oct 2025 03:04:14 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3:=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=B8=80=E4=B8=AA=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...%E8%AF%95%E4%B8%80%E4%B8%AA%E4%BB%A3%E7%A0%81.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/%E6%B5%8B%E8%AF%95%E4%B8%80%E4%B8%AA%E4%BB%A3%E7%A0%81.md b/%E6%B5%8B%E8%AF%95%E4%B8%80%E4%B8%AA%E4%BB%A3%E7%A0%81.md index c9d0c8f..71c39b9 100644 --- a/%E6%B5%8B%E8%AF%95%E4%B8%80%E4%B8%AA%E4%BB%A3%E7%A0%81.md +++ b/%E6%B5%8B%E8%AF%95%E4%B8%80%E4%B8%AA%E4%BB%A3%E7%A0%81.md @@ -1,7 +1,14 @@ # 这是一段typescript代码 - - ```ts -import +import hljs from "highlight.js"; +import atomOneDarkCSS from "highlight.js/styles/atom-one-dark.css?raw"; +import githubDarkCSS from "highlight.js/styles/github-dark.css?raw"; +import vs2015CSS from "highlight.js/styles/vs2015.css?raw"; +import React, { useMemo, useRef, useEffect } from "react"; +import ReactMarkdown from "react-markdown"; +import rehypeHighlight from "rehype-highlight"; +import rehypeRaw from "rehype-raw"; +import remarkBreaks from "remark-breaks"; +import remarkGfm from "remark-gfm"; ```