Markdown in, a designed deck out

A tour of every treasure-deck feature, written in treasure-deck

Treasure Work · Treasure AI

October 3, 2026

What treasure-deck is

  • One folder, one Markdown file — images sit next to it
  • One HTML page out — CSS, runtime, and images inlined; ready for Apps Script
  • No <div> markup — layouts, columns, and image placement are Markdown plus a few keywords
  • Brand themes — Treasure Work (gold), Treasure AI, and Wvlet restyle every slide
  • Dense by default — 22px body text on a 1280×720 canvas, room for real content
  • Strict — typos in layouts, attributes, or classes fail the build with a line number
pnpm deck build talk.md --theme treasure-ai   # → talk.htmlpnpm deck dev talk.md                          # live reload at localhost:4300
treasure-deck · Feature tour2 / 29
01

Writing slides

01Writing slides

Five additions to Markdown

Syntax Meaning
--- Next slide
--- <layout> {attrs} Next slide with a layout
=== col Next column
{.class key=value} Attributes
=== notes Speaker notes

Everything else is plain CommonMark + GFM.

--- columns 3:2 # About Me - Maintainer of **Example Project** === col ![](me.png){h=400 shadow} === notesMention a recent project.
treasure-deck · Feature tour4 / 29
01Writing slides

Four layouts — and that’s all

content

The default: a header and a body. Lists, tables, code, and images flow inside.

title

Opening slide. # Title, then {.subtitle} and {.meta} lines.

section

Starts a numbered section (01, 02, …). The divider slide is hidden unless {show}.

columns

Split by === col. Ratios like 3:2 or 1:1:1.

treasure-deck · Feature tour5 / 29
01Writing slides

Columns with ratios

A --- columns 2:1 slide gives the first column two thirds of the width. Columns are divided by a hairline in themes that set one.

  • Write === col on its own line to start the next column
  • A slide containing === col becomes a columns slide automatically
  • A leading # heading spans all columns
  • A column that opens with ### becomes a card
--- columns 2:1 # Columns with ratios Main text… === col Side notes…
treasure-deck · Feature tour6 / 29
01Writing slides

Section eyebrows and numbers

The small label above this title — the section number and name — comes from the most recent --- section. Authors write nothing extra.

  • Sections are numbered automatically: 01, 02, 03 …
  • Divider slides are hidden by default; --- section {show} (like the “Writing slides” divider) or section_slides: true shows them
  • --- {hide} drafts a slide out of the build; --- {fit} shrinks a dense slide’s body to fit
  • t shows a table of contents column listing the sections; toc: sidebar shows it from the start
  • Page numbers appear on every slide except title and section slides
  • The bottom banner carries the theme’s logo; footer: text follows it

Navigation, page numbers, transitions, and Japanese typesetting have no settings — the defaults are the design.

treasure-deck · Feature tour7 / 29
02Images

Size and decoration

Attribute Effect
w= / h= Size in canvas px (h=150) or percent of the column (w=50%)
shadow round circle border Decoration, drawn by the theme
fit / cover Fill the column (contain / crop)
left center right Alignment; several images in one paragraph form a row
treasure-deck · Feature tour8 / 29
02Images

Captions

Wvlet REPL sessionCommand-line editor of Wvlet (wv)

The Markdown image title becomes a caption under the image:

![alt](editor.svg "Command-line editor")

Each theme styles captions its own way — a teal chip in Wvlet, a quiet label elsewhere.

treasure-deck · Feature tour9 / 29
02Images

Side panels

{side=right w=42%} turns an image into a full-height panel and makes the slide a split — no layout needed.

  • side=left or side=right
  • w= sets the panel width (default 45%)
  • Page numbers move to stay clear of the panel
treasure-deck · Feature tour10 / 29
02Images

Full-bleed backgrounds

--- {bg=photo.jpg dim=0.35} on the slide header, or {bg} on an image, fills the slide. dim= adds a dark scrim and blur= softens the photo.

treasure-deck · Feature tour11 / 29
02Images

Pinned images

{at=top-right w=150} pins an image to one of nine anchors — top-left through bottom-right — or to exact coordinates with at=72%,18%.

  • Good for logos, stamps, and “new” badges
  • Pinned images sit above the content and ignore the flow
  • Combine with w= and decorations as usual
treasure-deck · Feature tour12 / 29
02Images

Videos

A video file takes image syntax, so it sizes, aligns, and pins the same way:

![Demo](media/demo.mp4){w=100% round autoplay loop}
  • autoplay: plays, muted, when the slide is shown
  • loop: plays again from the start
  • nocontrols: hides the play bar
  • Inlined into the HTML like images: keep clips short

A clip made in the browser

treasure-deck · Feature tour13 / 29
03Text and code

Semantic classes

Lead paragraph for the key point.

Muted text for secondary detail.

Inline highlight and a new badge.

Small print for sources and footnotes.

A callout for an aside that deserves a box.

A note with a side rule.

A warning when something can go wrong.

Centered text for a statement.

Lead paragraph.{.lead}Inline [highlight]{.hl}A warning.{.warn}

Every theme styles every class, so switching themes needs no edits.

treasure-deck · Feature tour14 / 29
03Text and code

Lists, quotes, and tables

  • Bullets follow each theme’s motif
    • Nested levels get their own marker
    • Dense lists stay readable
  • Ordered lists become pipeline stages in Wvlet:
  1. Scan the data
  2. Filter rows
  3. Aggregate

Context is the product; the model is a commodity.

Metric Q2 Q3 Δ
Weekly users 84 126 +50%
Decks built 210 480 +129%
Avg. slides 18 24 +33%
Build time 1.9s 0.4s −79%

Tables get theme headers and row rules. {w=46%} and {nowrap} on a header cell size its column and keep it on one line.

treasure-deck · Feature tour15 / 29
03Text and code

Code with line highlights

from orderswhere status = 'shipped'group by customer_idagg sum(amount) as total, count(*) as norder by total desclimit 10

```wvlet {3-4} dims every line except 3–4. Code renders in the theme’s monospace face; a slide holding only a code block gets a larger font.

treasure-deck · Feature tour16 / 29
03Text and code

Syntax highlighting

# Every highlight.js language worksdef total(orders):    return sum(o.amount for o in orders)
const deck = buildDeck('talk.md', {  theme: 'wvlet',});
-- SQL, and Wvlet too (wvlet or wv)select customer_id, sum(amount)from ordersgroup by 1

Colors are added at build time, so the HTML and PDF match. Each theme tints them to suit its code panels.

treasure-deck · Feature tour17 / 29
04Diagrams

Mermaid, styled by the theme

Markdowndeck buildOne HTML pageApps Script URLdeck check

Write a ```mermaid block. Nodes get the theme’s gradient, bold labels, and a soft shadow.

Role Syntax
primary B[deck build]
accent D[...]:::accent
dark C[...]:::dark
muted E[...]:::muted
light A[...]:::light
treasure-deck · Feature tour18 / 29
04Diagrams

Sequence diagrams and more

Apps ScriptdeckAuthorApps ScriptdeckAuthordeck buildtalk.htmlPublish/exec URL

Any Mermaid diagram works — flowcharts, sequences, states, Gantt charts — colored from the slide’s theme tokens.

  • deck build draws them ahead of time and inlines the SVG: no network needed to show them
  • A diagram with a syntax error fails the build, with its line
  • Colors follow per-slide night mode too
treasure-deck · Feature tour19 / 29
04Diagrams

Charts that make the point

  • A ```chart block: type:, x:, and series:, or a CSV file
  • highlight: puts the bar the slide is about in the accent
  • Colored by the theme, drawn at build time
$0M $10M $20M $30M $40M Q1 Q2 Q3 Q4 $12M $18M $25M $35M
treasure-deck · Feature tour20 / 29
04Diagrams

Areas, donuts, and CSV data

0 100 200 300 400 500 600 700 800 Jan Feb Mar Apr May Jun Decks built Published
Web 58% Slides 27% PDF 15%
treasure-deck · Feature tour21 / 29
04Diagrams

Dashboards from Treasure Work

treasure-deck · Feature tour22 / 29
05Presenting and sharing

Keyboard and touch

Key Action
→ Space / ← Next / previous slide
Home End, 12 Enter Jump to a slide
f Full screen
o / Esc Overview grid
t Table of contents
p / P Speaker notes and timer / presenter window
b l Black screen, laser pointer
s Share panel
? Shortcut help

Share panel

Copy a link to the deck or to the current slide, copy an embed snippet for Google Sites, or print to PDF.

Deep links

#/12 opens slide 12 — through google.script.history when published on Apps Script.

treasure-deck · Feature tour23 / 29
05Presenting and sharing

Speaker notes

Everything after === notes stays off the slide. p shows it in a panel with the elapsed time and the clock; P opens a presenter window with the notes and the next slide, which keeps the projector window in step.

# Speaker notes Visible content… === notesOnly the presenter sees this.
treasure-deck · Feature tour24 / 29
05Presenting and sharing

Table of contents

Press t to show a contents column at the left of every slide — try it now. Press t again to hide it.

  • Lists every section, with the current one highlighted
  • Under it, the current section’s slides, with this one marked
  • Click any entry to jump to that slide
  • Title, section, and full-bleed slides keep their whole canvas
---# show it from the starttoc: sidebar---

The column is part of the slide, so it shows when presenting and prints in PDFs with clickable entries.

treasure-deck · Feature tour25 / 29
05Presenting and sharing

日本語のスライドも自動で組版

  • 日本語を含むスライドには lang="ja" が自動で付きます
  • 行頭禁則と文節単位の改行(word-break: auto-phrase)が有効になります
  • 英語と日本語が混在しても設定は不要です
  • Mixed text like this line keeps English spacing and Japanese line breaking together

Japanese typesetting turns on per slide, only where it’s needed.

treasure-deck · Feature tour26 / 29
05Presenting and sharing

Themes and night mode

gold

Treasure Work: cream paper, gold shine, the gem.

treasure-ai

Gem-color gradients, frosted glass, the logo.

wvlet

Icy light, deep-teal titles, terminal code.

mode

mode: dark in the frontmatter, or {mode=dark} on one slide — like this one.

treasure-deck · Feature tour27 / 29
05Presenting and sharing

Strict by design

Typos fail the build with a line number instead of reaching the audience:

$ pnpm deck build talk.mderror: line 42: unknown separator === column (did you mean === col?)error: line 57: unknown image attribute "width" (allowed: w, h, bg, dim, blur, side, at, …)error: line 80: unknown class .fancy (built-in: .lead .small .muted …; define others in theme.css)error: line 91: ratio 1:1:1 has 3 parts but the slide has 2 columns

Need a class of your own? Define it in a theme.css next to the deck — it loads after the theme and extends the allowed classes.

treasure-deck · Feature tour28 / 29

Thank you

Create your own deck in Treasure Work

work.treasure.ai/docs/decks