git / git/git.github.io

Some more enhancements to Prism based syntax highlighting

未关闭
#862 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

检查捆绑的 Prism artifact,并确定实际在 repository 中使用了哪些受支持的语言。检查是否可以保留 Prism header,以及等效的语法高亮是否能在 newsletter 的电子邮件版本中正常工作;完成标准是 bundle 变得更小,同时不丢失所需的高亮或 header。

由索引模型根据 Issue 内容生成。

评估

技术栈
css, html, javascript
领域
frontend, performance
Issue 类型
重构
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。