NanoMD

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-prettify with highlight.js for syntax highlighting
    • Rename DependencyEndpoint.googleprettifyjs to highlightjs and switch the default CDN script to highlight.min.js
    • Replace Dependency.PR with hljs and add renderHighlight() to highlight recognized languages line by line in Refresh()
    • Update light and dark token color selectors in src/sass/parser.scss from prettify classes to .hljs-* classes

翻譯

  • 將程式碼高亮引擎由 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