Configuration
yaml- sectionType: code
containerTag: section
containerFields:
inContainer: true
isAnimated: true
code:
filename: "app.js" # Optional filename shown in the header
showCopy: true # Show the copy button (default: true)
content: | # A fenced markdown code block
```js
function example() {
console.log('Hello, World!');
}
```
Configuration Options
Code Properties
| Property | Type | Required | Description |
|---|
content | string | Yes | A fenced markdown code block; the fence info string sets the language (e.g. js, css, yaml) |
filename | string | No | Optional filename shown in the header |
showCopy | boolean | No | Show/hide the copy button (default: true) |
Notes
Highlighting is done at build time by Shiki inside themdToHTMLfilter. Shiki inlines every token color as a style attribute, so no theme stylesheet is loaded and there is no per-section theme — the theme is configured once in the markdown filter.
Supported Languages
The bundled Shiki grammars include JavaScript, TypeScript, CSS, HTML, Bash, JSON, YAML and Markdown. For Nunjucks templates usenjkornunjucksas the fence language — it is aliased to thejinja-htmlgrammar.