this post was submitted on 26 Aug 2024
143 points (100.0% liked)

chapotraphouse

13511 readers
1165 users here now

Banned? DM Wmill to appeal.

No anti-nautilism posts. See: Eco-fascism Primer

Vaush posts go in the_dunk_tank

Dunk posts in general go in the_dunk_tank, not here

Don't post low-hanging fruit here after it gets removed from the_dunk_tank

founded 3 years ago
MODERATORS
 

A complete^[I think? emilie-shrug] 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 phoenix-bashful]


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: this-is-not-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]^[citations-needed with Adam Johnson and Nima Shirazi]


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

~Sub~script using ~Sub~script

^Super^script using ^Super^script


{text|ruby} using {text|ruby}


spoilerThis 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! kirby-wave^[hello! koishi-wave]

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 9 points 2 months ago (2 children)

Something I just discovered yesterday is that it's impossible to post selected excerpts from a numbered list, it auto"corrects" the numbers to be sequential.

[–] [email protected] 9 points 2 months ago* (last edited 2 months ago) (1 children)
  1. this is not the first item on the list

  2. this is the second item as well

  3. or is it?

2. this is not the first item on the list

2. this is the second item as well
3. or is it?
[–] [email protected] 11 points 2 months ago (1 children)

You don't have to start at one but you can't skip any. These were written as 4, 7, 12:

  1. This is the fourth entry

  2. This is the seventh entry

  3. This is the twelfth entry

[–] [email protected] 10 points 2 months ago (1 children)
  1. This is the fourth entry

...

  1. This is the seventh entry

...

  1. This is the twelfth entry

The formatting sucks, but it can be done. You essentially are just breaking it up into three separate lists.

[–] [email protected] 5 points 2 months ago

Yeah the workaround I found yesterday is prepending a bit of text to each entry, but it surprised me that I had to

[–] [email protected] 8 points 2 months ago* (last edited 2 months ago) (1 children)

6. i think you can escape the period
7. Like this: 7\.

[–] [email protected] 6 points 2 months ago (1 children)