---
language: wikitext
contributors:
- ["Yuxi Liu", "https://github.com/yuxiliu1995/"]
filename: wikitext.md
---
A wiki is an online collaboratively edited hypertext publication, the most famous of which is Wikipedia. Wikitext is the markup language used by wikis. Its syntax is similar to a mix of Markdown and HTML.
## Syntax
``
| wikitext | equivalent Markdown | effect |
| ---- | ---- | ---- |
| `''italics''` | `*italics*` | *italics* |
| `'''bold'''` | `**bold**` | **bold** |
| `'''''both'''''` | `***both***` | ***both*** |
| `underlined` | `underlined` | underlined |
| `do not render` | N/A | `do not render` |
| `inline code snippet
` | \`inline code snippet\` | `inline code snippet` |
| `----` | `----` | horizontal linebreak |
| `strikethrough` | `~~strikethrough~~` | ~~strikethrough~~ |
Section headings are bracketed by `=`. They go from `= One equal sign =` to `====== Six equal signs ======`. They are equivalent to Markdown's hashtag headings, from `# One hashtag` to `###### Six hashtags`. Why six in both? I believe it's because HTML has six levels of headings, from `
` to ``.
Note that the `= One equal sign =` heading actually corresponds to the title of the page, and so cannot actually be used within a page. Consequently, the least number of equal signs is `== Two equal signs ==`.
Subscripts and superscripts can be written as `x1` and `x1`. Alternatively they can be written by the `