GitHub-flavored Markdown, and literal template examples
Tables, task lists and heading anchors in Markdown pages, and {{ }} in a Markdown body is now shown as written.
Markdown pages now use GitHub-flavored Markdown. You get:
| Feature | Example |
|---|---|
| Tables | This one |
| Task lists | - [x] done |
| Strikethrough | |
| Autolinks | https://sitegen.dev |
Every heading also gets an id, so you can link straight to a section, and raw HTML passes through untouched when Markdown isn't enough.
Template syntax stays literal
Writing about templates in Markdown used to be awkward: any {{ }} in the text was run as template code. Now a Markdown body is treated as content by default, so this shows exactly as typed:
{{ range sources "RelPath" "blog/*" }}
<a href="{{.Path}}">{{ .Meta.title }}</a>
{{ end }}
To run template code in a Markdown page, add templated: true to its frontmatter. The docs are written this way, with every example shown as it is.