Skip to content

Instantly share code, notes, and snippets.

@jajaperson
Last active July 27, 2018 07:55
Show Gist options
  • Save jajaperson/cdab47d7e2a1fffa88ecb897cd151ae2 to your computer and use it in GitHub Desktop.
Save jajaperson/cdab47d7e2a1fffa88ecb897cd151ae2 to your computer and use it in GitHub Desktop.
How to use Markdown in Habitica

Formatting on Habitica to post images, links, etc.

Links

To post a link on Habitica, you can either just paste the plain link (e.g. https://reddit.com/r/dankmemes) or you can create a link with different display text, like I just did there. To do this you use the following format:

[display text](URL)

Images

Images can be used in a very similar way to URLs. You put in alt text (the text you want to display when the image cannot be found), the url (the link to the Image) but you preceed it with a !.

![alt text](url-to-image)

Remember, the URL is DIRECTLY TO THE IMAGE, not a Reddit post. In order to get this, on Safari you can right click on the image and press Open Image in New Tab. Here you can copy the URL from the address bar.

Example

![markdown](https://habitica.com/static/images/home-main@3x.23eeafe.png)

markdown

Bold and Italics

Use *single asterisks* for italics and **double asterisks** for bold

Headings

# First Heading
## Second Heading
### Third Heading
#### Fourth Heading
##### Fifth Heading
###### Sixth Heading

Tables

To create a table, first, create the header row:

Title 1 | Title 2 | Title 3

Then, split it like this:

-- | -- | --

And finally rows

Item | Item | Item
Item | Item | Item

Example

x | 2  | 3  | 4  | 5
--|----|----|----|---
2 | 4  | 6  | 8  | 10
3 | 6  | 9  | 12 | 15
4 | 8  | 12 | 16 | 20
5 | 10 | 15 | 20 | 25
x 2 3 4 5
2 4 6 8 10
3 6 9 12 15
4 8 12 16 20
5 10 15 20 25

More

For more information you can read this cheatsheet from GitHub. Please make note that some features listed there may not yet be available on Habitica.

Source code

This post was made with markdown. See the source code here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment