BL Media

Easy slide decks

Written in Markdown. Presented with care. Use the arrows or the space bar to move on.

What this is

A small SvelteKit app. Each deck is one Markdown file in src/decks. Slides are split by a line that is only ---. Put the file in git, and the site presents it.

Writing a slide

Ordinary Markdown works: headings, lists, links, images and quotes.

mdsvex 1.0 treats *this* as bold and _this_ as italic. Inline code looks like this.

Step by step

Wrap a beat in <Step> and it waits for the next key.

This line arrives first.

Then this one. The hash becomes #4.2 so a link can land on this beat.

Code, one line at a time

The numbers after the language are highlight groups, split by |. Each group is a step.

type DeckPos = {
  slide: number;
  step: number;
};

export function next(pos: DeckPos): DeckPos {
  return { ...pos, step: pos.step + 1 };
}

Code that morphs

Put two or more fences inside a Morph block. Each fence is a version; the next key morphs the tokens into the next one.

const greet = 'hi';

Two columns

Left

A <Split> is a two-column grid. Put a block in each side.

Right

Useful for a point and a figure, or two short lists.

  • Keep it short
  • Let the type breathe

A thought, held still

The talk should feel like one idea, then the next, not a wall of text.

Light or dark

Set mode: dark or mode: light in the frontmatter. This deck is dark. There is no toggle: the file is the source of truth.

If you prefer reduced motion, transitions stay put, reveals appear at once, and morphing code swaps without the animation.

That's the lot

Go write a deck

Add a Markdown file in src/decks. The README in the repo has the short list of conventions. Arrow keys, space, click, and F for fullscreen.

1/10