Vitrinev1.0.4

Markdown

Headings, links, code blocks, tables and images, and what Vitrine adds to each.

Vitrine uses Hugo’s Markdown (CommonMark with GitHub’s extensions: tables, task lists, strikethrough). A few elements get extra behaviour through Hugo’s render hooks.

Headings

Start a page’s chapters at ##; the page’s title is its #. Every ## starts at a thin rule. Headings get a # link to themselves, shown on hover, so readers can link to a chapter. ## and ### headings are listed in “On this page”.

md
[Installation](/docs/getting-started/installation/)
[a chapter on this page](#code-blocks)
[the config file](hugo.toml)
[Hugo](https://gohugo.io/)

Code blocks

Fenced code gets a head with its language and a copy button:

js
const answer = 42;

Name the file instead of the language with file:

md
```js {file="script.js"}
const answer = 42;
```