Name
tilder 1.4.0 - three more languages highlighted, jsonc, kyaml and markdown
tilder 1.4.0 is out, and the site is built with it. The image is ghcr.io/thosted/tilder:1.4.0. Every language highlight.py already knew renders exactly as before.
jsonc, JSON with comments
jsonc, alias json-with-comments, is JSON with // and /* */ comments, the dialect of VS Code's settings.json and tsconfig.json. A comment is coloured like any other, whether it sits alone on a line or after a value; the rest highlights exactly as json does.
{
// the theme's own settings
"editor.tabSize": 2,
"files.trimTrailingWhitespace": true /* keeps diffs small */
}
kyaml, Kubernetes' strict YAML
kyaml, alias kyml, is Kubernetes' KYAML: flow style only, values double-quoted, a # comment. Punctuation stays plain, as in yaml and json.
apiVersion: "v1"
kind: "ConfigMap"
metadata: {"name": "site-config"}
data: {"accent": "208"}
markdown, this dialect
markdown, aliases md and mdown, highlights tilder's own dialect: front-matter keys and the --- around them, headings and the {markers} that end them, fences (a fenced block's own code is left plain, no nesting), comments, rules, a table's pipes, the > of a quote and its [!KIND] callouts, [TOC], list markers and task boxes, and, inside every line, inline code, emphasis, and a link's or an image's target. This site's own reference pages now show their source blocks this way (blocks).
---
title: About
description: Who writes this site and why.
---
## Name
about - who writes this site
- [x] a task, done
- [ ] a task, still to do
> [!INFO]
> Read the front matter first.