diff options
author | Vincent Ambo <tazjin@google.com> | 2019-12-21T15·57+0000 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-12-21T15·57+0000 |
commit | f90495138483698c954620564d93e2c42a114c9f (patch) | |
tree | 980e201f78ed238a1a61053449aa3908b49a5b8b /web/cgit-taz/0003-cgit_subtree_about_links.patch | |
parent | 671dbc7f72c2ccd1bbd1aa3ae66a0e627382eebd (diff) |
feat(cheddar): Render code blocks in Markdown via syntect r/287
Implements fully static (i.e. no JavaScript!) highlighting of code blocks when rendering Markdown. This works by walking through the Comrak AST and replacing any code blocks with pre-rendered HTML blocks. Syntaxes are chosen based on the "block info", which is the string users put after the block's opening fence. This can either be a (case-insensitive) name of a syntax, or alternatively a file extension associated with the desired syntax. The theme is set to one that imitates GitHub.
Diffstat (limited to 'web/cgit-taz/0003-cgit_subtree_about_links.patch')
0 files changed, 0 insertions, 0 deletions