Some more enhancements to Prism based syntax highlighting
還沒有人認領這個 Issue。
- 主要語言
- CSS
- 星號
- 373
- 分支
- 325
- 平均合併
- 4 天 18 小時
- 30 天內合併 PR
- 1
描述
Right now the bundled Prism file to support syntax highlighting (cf. #490) supports these: markup (covering html, xml, svg, mathml, ssml, atom, rss), CSS, C-like, JavaScript (js), C, C++ (cpp), Bash (sh, shell), Diff, Git, Go, JSON (webmanifest), Makefile, Perl, Python (py), Ruby (rb), and YAML (yml).
The following plugins are also bundled Autoloader and File Highlight.
I think we might be able to strip the supported languages significantly to only those that are used in the repository. This would reduce the bundle download size.
A few other things to check:
- It seems the Prism header from the artifact downloaded from the website has been removed. I think we can retain that.
- We might need to check if it is possible to achieve the same syntax highlight in the e-mail version of the newsletter @mjaix
cc @Amrit-raj50
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
檢查隨附的 Prism artifact,並確認哪些支援的語言實際上在 repository 中使用。檢查是否能保留 Prism header,以及等效的語法醒目提示是否能在 newsletter 的電子郵件版本中運作;完成的標準是 bundle 變得更小,同時不遺失必要的醒目提示或 header。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- css, html, javascript
- 領域
- frontend, performance
- Issue 類型
- 重構
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 活躍
- 描述清晰度
- 基本清楚
- 新手友好度
- 52/100