Markup

Slipshow’s presentations are written using a “What You See Is What You Mean” approach, compared to presentation tools such as PowerPoint, which are “What You See Is What You Get”.

In more usual words, PowerPoint lets you lay out your presentation visually; what you edit and what you’ll present are the same. Slipshow takes a different approach: you describe your intent (“this text is a title”, “this paragraph is a definition”, …) and Slipshow does the formatting for you.

In this page, we describe the syntax used to describe this intent. You’ll write your presentation as a plain text document, with no formatting, but using this specific syntax. From that syntax, Slipshow will be able to format the presentation.

Note

Slipshow’s syntax is very close to Markdown, but it’s subtly different in places. If you are familiar with Markdown, see where it differs

Paragraphs

A paragraph is made just by writing text. Paragraphs should be separated by a blank line.

Editor
Presentation
Both

    

A single newline does not create a new paragraph, but continues the current paragraph without a line break.

Headings

Headings are made by prefixing the text with # and a space. Each # you add bumps the heading level, usually resulting in a smaller title.

Editor
Presentation
Both

    

Bold and italic emphasis

Text can be made italic by putting a * character either side of it, bold by using **, and both at once using ***.

Editor
Presentation
Both

    

Images, SVGs, video, audio, PDFs, HTML, drawings

Images and several other objects are included with the following syntax: ![alternative text](path/to/file.extension).

The kind of media that is included (image, video, etc) is by default inferred from the extension. For instance, a file ending with .png is considered an image, while a file ending in .mp3 is considered an audio file. However, it is possible to override this convention by using an attribute. For instance: ![](file.mp4){audio} or ![](file.svg){image}.

Here are the possibilities:

Media type

Attribute

Extensions

Image

image

.png, .jpg, .jpeg, .gif, .bmp, .tiff

SVG

svg

.svg

Video

video

.3gp, .mpg, .mpeg, .mp4, .m4v, .m4p, .ogv, .ogg, .mov, .webm

Audio

audio

.aac, .flac, .mp3, .oga, .wav

PDF

pdf

.pdf

HTML

html

.html

Drawing

draw

.draw

Editor
Presentation
Both

    

Lists

Lists can be started with a dash. Indentation allows you to put other blocks within list items. Lists can be numbered too.

Editor
Presentation
Both

    

Note

Slipshow’s syntax inherits from Markdown’s notion of “tight/loose” lists.

In effect, if you find that the items in your list are rendered too close to each other, add a blank line between each item. The list will become “loose” and the items will be spaced.

Mathematics

Mathematical formulae can be inserted using LaTeX syntax. You can include mathematical markup inline, or as a block.

Create a mathematical block either by enclosing it in $$ or using a code block with the math language. To add some inline mathematics, enclose with a single $.

Editor
Presentation
Both

    

Code

Snippets of source code can be included either inline (in the flow of the text) using single backticks: ` or as a block using three backticks at their start and end: ```. Code will usually be formatted using a monospaced font.

Code blocks are blocks containing code to display verbatim, and syntax highlighted.

Editor
Presentation
Both

    

HTML

Including HTML is done in the same way as Markdown for inline and blocks. Use the Commonmark spec for reference, but here is a less-precise introduction.

You can include HTML directly in the flow, provided the HTML is separated from the text by at least one space.

If a line following a blank line starts with an HTML tag, the following lines will be interpreted as HTML until the next blank line.

Tables

Tables follow the GFM syntax:

Editor
Presentation
Both

    

They are currently not styled by default and thus require a bit more effort to use.

Thematic breaks

A thematic break is a change of subject represented graphically, often by a horizontal line, or sometimes a triple asterisk.

To add a thematic break, use either ___, ***, or an HTML <hr> tag.

Beware that horizontal lines may not render in the rendered example (due to being too small). You can add hr { border-width: 2px} in the editor if that happens.

Editor
Presentation
Both

    

Incompatibilities with Markdown

Quotes

Since in Slipshow, the > character is used for grouping, block quotes do not use CommonMark’s standard approach. Instead, they can be added as special elements.

Editor
Presentation
Both

    

Setext Headings

Markdown’s Setext headings cannot be used in Slipshow. Use ATX headings.