Structure and layout in MyST¶
The MyST forms of the specimens on Structure and layout, each rendered live by this page’s own Markdown parser.
Rubrics, centred lines and columns¶
Rubrics, centred lines and columns
```{rubric} An informal heading
```
```{centered} A centred *line*
```
````{hlist}
:columns: 3
- one
- two
- three
- four
- five
````
An informal heading
A centred line
|
|
|
Grouping blocks and classes¶
Grouping blocks and classes
```{container} ex-structure-box
A block with the class `ex-structure-box`.
```
````{compound}
Run the command
```shell
ubc build html docs
```
and open the page it writes.
````
```{rst-class} ex-structure-lead
```
A paragraph with the class `ex-structure-lead`.
A block with the class ex-structure-box.
Run the command
ubc build html docs
and open the page it writes.
A paragraph with the class ex-structure-lead.
Topics¶
A topic cannot sit inside a live specimen, so its source is shown first and the topic itself follows at the top level of this page.
```{topic} A topic
A self-contained aside, with a title of its own.
```
The source renders as:
A table of contents for the page¶
```{contents} On this page
:depth: 2
:backlinks: none
:class: this-will-duplicate-information-and-it-is-still-useful-here
```
The source renders as: