Skip to content
Taliesin User Guide

9 Cheat sheet

Every construct on one page: front matter, cells, divs, references and shortcodes, with a link to the chapter that explains each.

Reference: Cheat sheet · CLI · Configuration · Cell options · Troubleshooting · Accessibility · Licensing

Every construct taliesin supports fits in the seven tables below. Anything you can write that is not named on this page is either plain CommonMark, which just works, or not something taliesin implements.

9.1 Front matter

KeyWhat it doesChapter
title:The document title: drives <title>, the title block, and social metaConfiguration reference
subtitle:A secondary line under the titleConfiguration reference
author:A name, a list of names, or a structured list with affiliationsConfiguration reference
date:Publication date; sorts a listing:Configuration reference
description:Summary for the meta description and the social-share unfurlConfiguration reference
categories:Tags for the page; each becomes a <category> in the Atom feedConfiguration reference
image:The picture on a listing: card and the og:image a shared link unfurls withConfiguration reference
image-alt:The alt text for that picture; required whenever image: is setConfiguration reference
draft:Holds a page out of the build; the preview still shows it, badgedConfiguration reference
title-block-style:none hides the visible <h1> title block (the title still drives <title>, OpenGraph, nav)Configuration reference
toc:Forces the table of contents on or off (automatic by default)Configuration reference
bibliography:A .bib file, enabling [@key] citationsRich writing
execute:Document-wide cell defaults (cache:)Configuration reference
listing:Turns the page into an index: a card per documentConfiguration reference
hero:A landing-page banner with a headline and call-to-action buttonsConfiguration reference

That is every top-level front-matter key taliesin recognizes. See Configuration reference.

9.2 Cells

SyntaxWhat it doesChapter
{python}Executes against a warm Jupyter kernelExecutable content
{js}Runs in the browser, wired into the reactive graphInteractive documents
{mermaid}Renders a diagram client-sideRich writing
{=html}Raw HTML, emitted verbatimRich writing
{bash} {sql} {julia} {rust}Highlighted, never executed. Unlike a plain ```bash fence these take #| options, so a label: plus lst-cap: turns one into a numbered listingExecutable content
#|Leading cell-option prefix (most languages)Cell-options reference
//|Leading cell-option prefix ({js})Cell-options reference
%%|Leading cell-option prefix ({mermaid})Cell-options reference

9.3 Cell options

OptionWhat it doesChapter
#| echo:false hides the source listing; the cell still runsCell-options reference
#| include:false hides both source and outputCell-options reference
#| cache:false opts the cell out of the _freeze/ cacheCell-options reference
#| label:A fig-/lst-/tbl- name makes the output numbered and cross-referenceableCell-options reference
#| fig-cap:A caption that makes the output a numbered figureCell-options reference
#| lst-cap:A caption that makes the source a numbered listingCell-options reference
#| tbl-cap:A caption that makes the output a numbered tableCell-options reference
#| code-fold:Collapses the listing into a closed (or, with show, open) <details>Cell-options reference
#| code-summary:The label on a folded listingCell-options reference
//| name:Publishes a {js} cell’s return value under this nameCell-options reference
//| viewof:The cell returns a DOM input registered under this nameCell-options reference
//| input:Comma-separated names this cell re-runs onCell-options reference

9.4 Divs

SyntaxWhat it doesChapter
::: {.callout-note}An informational asideRich writing
::: {.callout-tip}A tip or a recommendationRich writing
::: {.callout-warning}A caution the reader should not skipRich writing
::: {.column-margin}Floats into the right margin on a wide screen, folds into the flow on a narrow oneRich writing
::: {.column-page}Widens a block up to the page widthRich writing

Three attributes go inside the braces. title="…" sets a callout’s heading (else a leading heading, else the kind) and collapse="true" folds it into a native <details> ("false" starts it open); both are callout-only. layout-ncol=3 lays a plain div’s blocks out as an N-column grid. Any class this table does not name is passed straight through to the <div> for your own CSS, and is not diagnosed.

9.5 Math

SyntaxWhat it doesChapter
$…$Inline math, in running textRich writing
$$…$$Display math, standing on its ownRich writing
$$…$$ {#eq-x}A numbered display equation, cross-referenceable as @eq-xRich writing

All three render server-side with KaTeX at build time, fonts inlined, so a built page needs no network. The last row is the one worth seeing: Equation 9.1 below is written that way, and this sentence references it.

eiπ+1=0e^{i\pi} + 1 = 0(9.1)

9.6 References

SyntaxWhat it doesChapter
[@key]A citation, resolved against bibliography:Rich writing
@fig-nameCross-reference to a numbered figureRich writing
@sec-nameCross-reference to a heading carrying {#sec-name}Rich writing
@tbl-nameCross-reference to a numbered tableRich writing
@eq-nameCross-reference to a numbered equationRich writing
@lst-nameCross-reference to a numbered listingRich writing
[^label]A footnote, rendered as a margin sidenote next to the line that cites itRich writing
{#anchor}An explicit id on a heading, figure, or equation, for an @-reference to targetRich writing

9.7 Shortcodes

SyntaxWhat it doesChapter
{{< include path/to/partial.tmd >}}Splices another file’s contents in before parsingRich writing
{{< input name="k" type="slider" >}}A labelled, keyboard-accessible control (slider, number, checkbox, text, or select) wired into the reactive graphInteractive documents