v2.0.12 -> v2.0.13
Summary
Replaces the syntax highlighting engine with highlight.js and updates the corresponding theme styles. Documentation across the repository is brought up to date with recent syntax fixes and the new highlighting setup.
翻譯
將程式碼語法高亮引擎替換為 highlight.js,並更新對應的主題樣式。同步更新專案文件以反映近期的語法修正與新的高亮設定。
Changes
REFACTOR
- Replace
code-prettifywithhighlight.jsfor syntax highlighting- Rename
DependencyEndpoint.googleprettifyjstohighlightjsand switch the default CDN script tohighlight.min.js - Replace
Dependency.PRwithhljsand addrenderHighlight()to highlight recognized languages line by line inRefresh() - Update light and dark token color selectors in
src/sass/parser.scssfrom prettify classes to.hljs-*classes
- Rename
翻譯
- 將程式碼高亮引擎由
code-prettify替換為highlight.js- 將
DependencyEndpoint.googleprettifyjs更名為highlightjs,預設 CDN 腳本改為highlight.min.js - 將
Dependency.PR改為hljs,並在Refresh()新增renderHighlight()為已識別語言逐行上色 - 將
src/sass/parser.scss淺色與深色模式的高亮 token 選擇器由 prettify class 更新為.hljs-*
- 將
Scope
-
src/parser/— REFACTOR (index.ts,refresh.ts,types.ts) -
src/sass/— REFACTOR (parser.scss) -
dist/— CHORE (multiple files) -
README.md,doc/— DOC (multiple files) -
package.json— CHORE
Generated by SKILL

