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.
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.
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 ***.
Links
Create links with this syntax: [alternative text](link target).
Images, SVGs, video, audio, PDFs, HTML, drawings
Images and several other objects are included with the following syntax:
.
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: {audio} or {image}.
Here are the possibilities:
Media type |
Attribute |
Extensions |
|---|---|---|
Image |
|
|
SVG |
|
|
Video |
|
|
Audio |
|
|
|
|
|
HTML |
|
|
Drawing |
|
|
Lists
Lists can be started with a dash. Indentation allows you to put other blocks within list items. Lists can be numbered too.
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 $.
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.
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:
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.
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.
Setext Headings
Markdown’s Setext headings cannot be used in Slipshow. Use ATX headings.