A Deno version of the excellent shiki library via shiki-es. The following extra features and customizations have been added:
- A svg renderer using deno-canvas.
- A font cache with a few popular web fonts hard coded in.
- A web server for rendering code snippets from github (more info below)
The web server is intended to replicate the useful funtionality described in Creating a permanent link to a code snippet while also being able to render any GitHub permalink the server has permission to access. This allows you to embed code samples in the project README.md
and from entirely different repositories.
The following raw markdown code:

Produces this rendered code snippet:
And with line number ranges:

Produces:
You can also customize the theme and language via the ?theme=
and ?lang
search parameter.

Produces:
- Deployed to Deno Deploy
- Domain is currently
shiki.quack.rest
- Most of the code is quite old and could use a refactor
- Add in more languages or just remove hardcode.
- Infer language based on file extension
- Document available languages and themes
- Support additional metadata in webserver svg renderer for closer feature parity with GitHub code snippets