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 /ci-builds.nix | |
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 'ci-builds.nix')
0 files changed, 0 insertions, 0 deletions