Skip Navigation

The Complete* Lemmy Markdown Specification, for True Post Maxi

A complete^[I think?

] 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~~^[whoops

]


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:

 undefined
    
#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:

 c
    
#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:

 markdown
    
#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:

using ![this-is-not-an-emote](https://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]

[3]: Footnote definition using `[3]: Footnote definition`

Inline footnote^[citation needed]^[

with Adam Johnson and Nima Shirazi]


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

  

Subscript using ~Sub~script

Superscript using ^Super^script


{text|ruby} using {text|ruby}



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


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

 markdown
    
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!

^[hello!
]

47 comments
  • Do triple nested block quotes work?

    I dunno why not try?

    Yeah I suppose I could

  •  \n
        
    const post = 'post';
    switch (post) {
      case 'Hog':
        console.log('Hog posted.');
        break;
      case 'Sicko':
        console.log('yes)
      default:
        console.log(`ppb}.`);
    }
    
      
  • Not that big but something I learned semi-recently since I write my notes in markdown, but when making lists, you can use either the "-" or the "+" symbol.

    So this is a list with +

    • Stalin
    • shouldn't
    • have
    • stopped
    • at
    • Berlin

    but looks like this:

     undefined
        
    + Stalin
    + shouldn't 
    + have
    + stopped
    + at
    + Berlin
    
      
  • What makes emojis different from images that they will be displayed in line?

    • custom parsing rule for alt-text. if the first word is 'emoji' it's rendered as an emoji.


      ![](https://hexbear.net/pictrs/image/a66b82a6-450d-450a-8116-4989af1de8bf.png "emoji post-maxi")


      ![](https://hexbear.net/pictrs/image/a66b82a6-450d-450a-8116-4989af1de8bf.png "post-maxi")

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

    Always include a description of your image between the square brackets so that visually impaired users know what the image is a picture of. Example:

    or

    or

    Or if you want, you can include a title for your image, which non-visually-impaired users will see when hovering over the image. Like this:

    More detail about the importance of alt text for screen readers


    Also, you can host videos with sound on toots.matapacos.dog and embed them on Hexbear (but you should include descriptions of any videos you post for blind users, too).

    Example: I posted a video in this toot, and now I can embed it

     markdown
        
    ![We hold these truths to be self-evident. All men and women are created, by the, you know, you know the thing](https://assets.toots.matapacos.dog/media_attachments/files/113/027/984/434/659/548/original/58d6bb11df28b827.mp4)
    
      

    • omg i have never seen anyone do this video thing and I am not sure I want it to spread so please don't tell anybody again

      tho the video you posted was funny hahaha

47 comments