What a page can show

Everything on this page is in one .mdz: the text, the pictures and the diagrams. It’s written in plain Markdown, so it looks the same in your editor as it does here.

On this page: text · lists · tables · pictures · diagrams · code · quotes and notes · math

Text

Write bold, italic, both, struck out and code. Link to another page, to a heading on this page, or to a website.

A third-level heading

Headings from # to ###### make the page’s outline. Each one gets an anchor, so you can link straight to it, like the links at the top of this page.

Lists

Bullets:

Numbered steps:

  1. Write the page
  2. Push it
  3. Read it on the web

A task list:

Tables

Feature In your editor On the website Notes
Headings and lists Yes Yes Plain Markdown
Tables Yes Yes Columns can align left, center or right
Pictures Yes Yes Stored inside the .mdz
Mermaid diagrams Most editors Yes Drawn in the browser

Pictures

Inside an .mdz: the page's Markdown, an images folder with its pictures, and a manifest with its title and description

Pictures are stored inside the .mdz, so they can’t go missing. This drawing shows what’s inside this page’s file.

On a wide screen it sits to the right of the text, because the page uses the same HTML that MDZip Studio writes when you align a picture: <img src="..." align="right">. On a phone it sits on its own line instead.

A picture can also have the page to itself, with plain Markdown: ![Description](images/picture.png).

Diagrams

A diagram can be a picture, like the flow on How it works, drawn in any tool that saves SVG, such as draw.io.

Or it can be text. This is a Mermaid diagram, written as a code block marked mermaid, and drawn in your browser:

flowchart LR
    A[Write a page] --> B[Save the .mdz]
    B --> C{Push}
    C -->|pull request| D[Check and convert]
    C -->|main branch| E[Check, convert and publish]
    E --> F((Website))

Code

Code blocks are colored by language:

from pathlib import Path

for page in sorted(Path("pages").glob("*.mdz")):
    print(f"Publishing {page.stem}.html")
- uses: mdzip-project/mdzip-pandoc@v0
  with:
    input: pages
    output: _site

Quotes and notes

A quote, or a note set apart from the text.

It can run over several paragraphs.

A footnote goes at the end of the page, with a link back.1


A line made of three dashes, like the one above, divides the page.

Math

Formulas are written between dollar signs. The area of a circle is A=πr2A = \pi r^2, and on a line of its own:

∑n=1∞1n2=π26\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}


  1. This is the footnote. The arrow takes you back to where you were.↩︎