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"; ```