Skip to content

Commit ef9cdfe

Browse files
committed
refactor: clean up dependencies and improve markdown rendering
- Removed unused dependencies: @bugsplat/elfy, @vue/shared, @neilsustc/markdown-it-katex, elfjs, elfy, and katex from package.json. - Updated highlight.js usage to only register essential languages (C, C++, Python, JavaScript, TypeScript) for RT-Thread development in renderer.ts. - Removed math rendering options and related code from MarkdownRenderer to simplify the rendering process. - Cleaned up imports in App.vue by removing unused styles for KaTeX and highlight.js. - Disabled math rendering in the webview about page by removing enableMath option.
1 parent c2c62cd commit ef9cdfe

File tree

6 files changed

+1923
-446
lines changed

6 files changed

+1923
-446
lines changed

.vscodeignore

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,24 @@ vsc-extension-quickstart.md
1010
**/*.map
1111
**/*.ts
1212
**/.vscode-test.*
13-
# Exclude all node_modules except marked
13+
# Exclude all node_modules except markdown-it related packages
1414
**/node_modules/**
15-
!node_modules/marked/**
15+
!node_modules/markdown-it/**
16+
!node_modules/markdown-it-*/**
17+
!node_modules/argparse/**
18+
!node_modules/entities/**
19+
!node_modules/linkify-it/**
20+
!node_modules/mdurl/**
21+
!node_modules/punycode.js/**
22+
!node_modules/uc.micro/**
23+
!node_modules/highlight.js/**
24+
25+
# Exclude unnecessary files from included packages to reduce size
26+
node_modules/highlight.js/**/*.md
27+
node_modules/highlight.js/styles/**
28+
node_modules/highlight.js/scss/**
29+
node_modules/highlight.js/es/**
30+
node_modules/markdown-it*/**/*.md
1631
**/.git/**
1732
**/package-lock.json
1833
**/.DS_Store

0 commit comments

Comments
 (0)