Markdown Reference
Revolt uses a simple, plain-text based, and super easy text formatting system called Markdown.
Use it to make your text stand out!
Basic Styles
Style | Markdown |
---|---|
bold | **bold** or __bold__ |
italics | *italics* or _italics_ |
bold italics | ***bold italics*** or ___bold italics___ |
~~strikethrough~~ |
Code Blocks
You can use code blocks for text that needs to be easily copied, such as code.
Single-line Code Block
Style | Markdown |
---|---|
This is a single-line code block! | `This is a single-line code block!` |
Multi-line Code Block
This is a multi-line code block!
let x = "This is a multi-line code block, with the language set to JS"
```
This is a multi-line code block!
```
```js
let x = "This is a multi-line code block, with the language set to JS"
```
The language display, shown above as a purple button, also acts as a copy button - if you click on it, the entire contents of the code block get pasted into your clipboard! This is especially useful for code blocks that contain a lot of text.
Block Quotes
You can use Block Quotes to signify a quote. The block quote can be multiple levels deep.
If you change the way you look at things, the things you look at change.
— Wayne Dyer
trash can sus
> > If you change the way you look at things, the things you look at change.
>
> — Wayne Dyer
trash can sus
Three Block Quotes on a single line will not quote the whole message - it will make the first line a triple-quote.
You need to put an empty line after every Block Quote to signify the end of the Block Quote.
Spoilers
You can hide spoilers using spoiler tags.
Simply wrap your spoiler in two exclamation marks before and after, and the text will only be revealed after an additional click.
The impostor is !!jan!!
Links
You can embed links in regular text.
Style | Markdown |
---|---|
Revolt | [Revolt](https://revolt.chat) |
Headings
You can add headings to your messages. The lower the heading number, the larger the text. The smallest heading is 6.
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
Tables
You can create tables in your messages.
Header 1 | Header 2 | Header 3 |
---|---|---|
Cell 1 | Cell 2 | Cell 3 |
Cell 4 | Cell 5 | Cell 6 |
Cell 7 | Cell 8 | Cell 9 |
| Header 1 | Header 2 | Header 3 |
|----------|----------|----------|
| Cell 1 | Cell 2 | Cell 3 |
| Cell 4 | Cell 5 | Cell 6 |
| Cell 7 | Cell 8 | Cell 9 |
Lists
You can create lists in your messages, such as unordered lists (*
, +
, -
) and ordered lists (1.
, 2.
, 3.
).
- Item 1
- Item 2
- Item 3
- Item 1
- Item 2
- Item 3
* Item 1
* Item 2
* Item 3
1. Item 1
2. Item 2
3. Item 3
KaTeX
You can use KaTeX to render math and some other advanced markup in your messages.
Style | KaTeX |
---|---|
$x^2$ | |
$\sin(x)$ | |
$\frac{x}{y}$ | |
$\sqrt{x^2}$ | |
$\sum_{i=1}^n a_i$ | |
$\lim_{x \to \infty}$ | |
$\color{red}\textsf{Red Text}$ | |
$\colorbox{red}{{\color{white}\textsf{White Text with Red Background}}}$ |
See KaTeX's documentation for more information.
Timestamps
You can display timestamps in your messages. The format requires you to get the time as a Unix timestamp. You can do this with online services like unixtimestamp.com.
Style | Markdown |
---|---|
01:37 | <t:1663846662:t> |
01:37:42 | <t:1663846662:T> |
22 September 2022 02:37 | <t:1663846662:d> |
22 September 2022 | <t:1663846662:D> |
22 September 2022 01:37 | <t:1663846662:f> |
Thursday, 22 September 2022 01:37 | <t:1663846662:F> |
in 9 months (f.e.) | <t:1663846662:R> |
Emoji
You can use emoji in your messages. This allows you to express yourself in a more human way.
Style | Markdown |
---|---|
:cowboy_hat_face: | |
:flushed: | |
:heart_eyes: | |
:smiling_face_with_three_hearts: |
You can see the full list of emoji shortcodes using auto-completion - simply start typing with a :
.