A complete[1] guide to Lemmy’s supported markdown formatting.


Heading 1 # Heading 1

Heading 2 ## Heading 2

Heading 3 ### Heading 3

Heading 4 #### Heading 4

Heading 5 ##### Heading 5
Heading 6 ###### Heading 6

Bold text using **Bold text** or __Bold text__

Italic text using *Italic text* or _Italic text_

Bold and italic text using ***Bold and italic text***

Strikethrough text using ~~Strikethrough text~~[2]


This is a blockquote using > This is a blockquote

Nested blockquote using >> Nested blockquote


  • Unordered list item using - Unordered list item
  • Another item using - Another item
  1. Ordered list item using 1. Ordered list item
  2. Another ordered item using 2. Another ordered item

Inline code using `Inline code`

Unspecified code block:

#include <stdio.h>

int main() {
    int x = 10;
    if (x > 5) {
        printf("This is a test!\n");
    }
    return 0;
}

// **Wow! How neat!**

Using ``` \n code \n ```

C code block:

#include <stdio.h>

int main() {
    int x = 10;
    if (x > 5) {
        printf("This is a test!\n");
    }
    return 0;
}

// **Wow! How neat!**

Using ```c \n code \n ```

Same, but designated as markdown code block:

#include <stdio.h>

int main() {
    int x = 10;
    if (x > 5) {
        printf("This is a test!\n");
    }
    return 0;
}

// **Wow! How neat!**

Using ```markdown \n code \n ```


This is a link using [This is a link](https://hexbear.net/c/main)

This is an image: ![](https://hexbear.net/pictrs/image/456a406f-0cbc-4a0b-8062-d89a078ff465.png)

This is an emote: //hexbear.net/pictrs/image/315ad77c-a156-42c9-aa92-ee4e724e241a.png "emoji this-is-not-an-emote")

Quotations after second part of links/images are alt-text, which appear when moused over and help w/rt screen readers.


Footnote reference[^3][3]

Inline footnote^[citation needed][4]


This is
how to
make tables
| This | is |
|-|---|
| how | to
| make | tables |

Subscript using ~Sub~script

Superscript using ^Super^script


textruby using {text|ruby}


spoiler

This is hidden content using ::: spoiler spoiler \nThis is hidden content\n:::


Horizontal rule using ---, ***, or ___:


Two spaces and a newline \n
to single-space your text

Otherwise
it looks like:

Otherwise it looks like


If you know anything else that works, let me know and I’ll add it. Asked too many times to not try and compile a reference for people, and I sometimes forget myself so it’s nice to have the reference. Here are the footnotes, by the way!
hello footnotes! [5]


  1. I think? ↩︎

  2. whoops ↩︎

  3. Footnote definition using [^3]: Footnote definition ↩︎

  4. ↩︎

  5. hello! ↩︎

You are viewing a single thread.
View all comments
10 points

For tables, you can make things easier for yourself by using only one hyphen in the delimiter. The lines at the start and end of each row are unnecessary too. Like this:

header 1|header 2|header 3
|-|-|-|
info|data|thing
stuff||entry
header 1 header 2 header 3
info data thing
stuff entry

Also, you can leave squares blank.

permalink
report
reply
6 points

altered for clarity

permalink
report
parent
reply
3 points

Also tables don’t render in Jerboa without a blank line above them. That means you can’t hide a table within a spoiler, sadly ):

permalink
report
parent
reply
2 points
*

Cool. I make tables with the help of markor

Header 1. Header 2 . Header 3
Data1 . Next data2 . Other Data3

Then I select the text and use search & replece to replace the ‘.’ with |.
The end and beginning ‘|’ can be added replacing \n with | \n| with the regular expressions option turned on.
Saves time typing the | character on mobile

I do have to add the |-|-|-| in the 2nd row

permalink
report
parent
reply