Markup Reference

A showcase of what things look like with Pressmark

Gebrauchsgraphik Magazine Nr. 6-60

Blockquotes

A simple Markdown Blockquote

> 'Classic' – a book which people praise and don’t read. 
> 
> ***Mark Twain***

Turns into this:

‘Classic’ – a book which people praise and don’t read.

Mark Twain

Note the ***, transforming the name into smallcaps. You can read more about it in the typography explanation.

Code Blocks

Here’s a python code block:

print("Hello World")

with an optional filename:

matplotlib.py
import matplotlib.pyplot as plt
plt.plot([1,23,2,4])
plt.show()

and with line numbers:

import matplotlib.pyplot as plt
plt.plot([1,23,2,4])
plt.show()

Tables

Here’s an example of a table

Header Another header
field 1 something
field 2 something else
field 3 something different

created with:

| Header  | Another header |
|---------|----------------|
| field 1 | something      |
| field 2 | something else |

Footnotes

Here is a simple footnote[^1].

A footnote can also have multiple lines[^2].  

You can also use words, to fit your writing style more closely[^note].

[^1]: My reference.
[^2]: Every new line should be prefixed with 2 spaces.  
  This allows you to have a footnote with multiple lines.
[^note]:
    Named footnotes will still render with numbers instead of the text but allow easier identification and linking.  
    This footnote also has been made with a different syntax using 4 spaces for new lines.

Here is a simple footnote1.

A footnote can also have multiple lines2.

You can also use words, to fit your writing style more closely3.

Horizontal Rule

Sometimes Horizontal Rules come in handy. Thats why Pressmark has a custom design for them, inspired by the dinkus you often find in books


Lists

Bullet Lists

- Bullet lists in Markdown are pretty straightforward.
- A bunch of bullet points.
  - Nested bullets should be indented by two or more spaces.
  - They can just "show up" inline with the rest of the list. Adding blank lines
    before and after is also permitted.
  • Bullet lists in Markdown are pretty straightforward.
  • A bunch of bullet points.
    • Nested bullets should be indented by two or more spaces.
    • They can just “show up” inline with the rest of the list. Adding blank lines before and after is also permitted.

Numbered Lists

1. Numbered lists are not complicated.
2. They do exactly what you think they do.
  1. Numbered lists are not complicated.
  2. They do exactly what you think they do.

Multi-paragraph Lists

- It is also possible to have multiple paragraphs in a bullet.

  Make sure to have a blank line between the paragraphs, and to indent the
  paragraphs to the correct level.
- Note that these lists are less "dense"
  • It is also possible to have multiple paragraphs in a bullet.

    Make sure to have a blank line between the paragraphs, and to indent the paragraphs to the correct level.

  • Note that these lists are less “dense”

Definition Lists

Definition Lists
:  An extremely useful tool for describing stuff.

Complicated Term
:  Definition
Definition Lists
An extremely useful tool for describing stuff.
Complicated Term
Definition

Buttons

Technically not standard markdown, but still useful. Just insert a standard HTML button in your prose…

<button> Click Me </button>

… and it will be styled like this:

Footnotes

  1. My reference.↩︎

  2. Every new line should be prefixed with 2 spaces.
    This allows you to have a footnote with multiple lines.↩︎

  3. Named footnotes will still render with numbers instead of the text but allow easier identification and linking.
    This footnote also has been made with a different syntax using 4 spaces for new lines.↩︎