This file serves as a reference for all supported markdown syntax.
Markdown consists of simple syntax like *cursive* for cursive. You can also use **bold** for bold. A new paragraph starts by two newlines.
Markdown is related to html and many html tags have markdown equivalents. Like headings or horizontal rulers. The equivalents to h1 to h6 are # to ######.
This line above is a horizontal rule (hr) and you can create it with ---
- You can do ordered or unordered lists
- simply by starting a new line with
1. - or
-for ordered/unordered respectively
- this is an unordered list
- simply for demonstration
There are a couple characters that start a list. 1. and 1) for ordered lists and -, + and * for unordered lists.
To support more than the bare minimum of features we use several extensions.
You don't actually need to do anything for this. All headings automatically get referenced in a list of headings that floats at the side of the page.
Tables are not markdown native but they're sometimes useful despite their awful syntax. Here's an example:
| column header | another header |
|---|---|
| item | item |
| item | item |
This was achieved with the following code:
| column header | another header |
| :-----------: | :------------: |
| item | item |
| item | item |
What you just saw above is called fenced code. It allows you to wrap text into a specially styled block. It is technically preformatted text wrapped in a code tag. You can start it with a triple backtick, aka ```.
Sometimes you might want to include metadata into your markdown file. this usually gets stripped before being rendered. At the start of your file simply use the following syntax:
---
title: nice file title
tags: tutorial markdown
some other tag: some words
---
MarkWiki currently only makes use of the tags metadata though in the near future title may see some use.
We use an extension that provides syntax for definition lists.
a word
: definition of word
Use the following syntax:
a word
: definition of `word`
: possibly another definition
From github you might have been used to the following:
- implement table of contents
- implement edit history
- [/] improve lists
- add account management
This checkbox syntax is sometimes quite handy. You do it like so:
- [x] checked checkbox
- [/] indeterminate checkbox
- [ ] unchecked checkbox