Skip to content

Commit

Permalink
Merge pull request #305 from ChandlerVer5/refactor-markdown
Browse files Browse the repository at this point in the history
refactor(markdown): 💡 使用 markdown-it 替换 marked,获得更好的体验
  • Loading branch information
Chanzhaoyu authored Mar 6, 2023
2 parents de34d97 + cd91cb1 commit c8fa086
Show file tree
Hide file tree
Showing 9 changed files with 111 additions and 139 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,22 @@
"dockerhub",
"esno",
"GPTAPI",
"highlightjs",
"hljs",
"iconify",
"katex",
"katexmath",
"linkify",
"logprobs",
"mdhljs",
"nodata",
"OPENAI",
"pinia",
"Popconfirm",
"rushstack",
"Sider",
"tailwindcss",
"traptitech",
"tsup",
"Typecheck",
"unplugin",
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
"common:prepare": "husky install"
},
"dependencies": {
"@traptitech/markdown-it-katex": "^3.6.0",
"@vueuse/core": "^9.13.0",
"highlight.js": "^11.7.0",
"katex": "^0.16.4",
"marked": "^4.2.12",
"markdown-it": "^13.0.1",
"naive-ui": "^2.34.3",
"pinia": "^2.0.32",
"vue": "^3.2.47",
Expand All @@ -40,7 +41,7 @@
"@iconify/vue": "^4.1.0",
"@types/crypto-js": "^4.1.1",
"@types/katex": "^0.16.0",
"@types/marked": "^4.0.8",
"@types/markdown-it": "^12.2.3",
"@types/node": "^18.14.6",
"@vitejs/plugin-vue": "^4.0.0",
"autoprefixer": "^10.4.13",
Expand Down
111 changes: 79 additions & 32 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 0 additions & 23 deletions src/directives/highlight.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/directives/index.ts

This file was deleted.

Loading

0 comments on commit c8fa086

Please sign in to comment.