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
- Ordered list item using
1. Ordered list item
- 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: 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]
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
text 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]
Libs: “Hexbear is a tankie echo chamber”
the Hexbear echo chamber:
post hog
post hog
post hog
post hog
post hog
post hog
post hog
ok
There’s another one, if you write beanis it gives you a ton of upbears.
i can never make heading work
oh holy shit
It kills me that there’s no way to do strikethrough on here
ah… eto… blehI swear I’ve tried to do this in the past and it hasn’t worked
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.
6. i think you can escape the period
7. Like this:7\.
3. Let’s
6. See
👍
-
this is not the first item on the list
-
this is the second item as well
-
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?
You don’t have to start at one but you can’t skip any. These were written as 4, 7, 12:
-
This is the fourth entry
-
This is the seventh entry
-
This is the twelfth entry
- This is the fourth entry
…
- This is the seventh entry
…
- This is the twelfth entry
The formatting sucks, but it can be done. You essentially are just breaking it up into three separate lists.
Yeah the workaround I found yesterday is prepending a bit of text to each entry, but it surprised me that I had to
-
-
Awesome post, comrade
Do triple nested block quotes work?
I dunno why not try?
Yeah I suppose I could
Seems like they work fine
ᕕ(ᐛ)ᕗ
const post = 'post'; switch (post) { case 'Hog': console.log('Hog posted.'); break; case 'Sicko': console.log('yes) default: console.log(`ppb}.`); }
Totally didn’t do a stack overflow statement because I forgot how to do a switch statement in JS
ok now how do i do an in-line spoiler thanks
cant
MARKDOWN SUCKS
Thanks.
I kind of hate you for making me aware of this because now I have to update the emulation thread
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:
+ Stalin + shouldn't + have + stopped + at + Berlin
an
*
works too:- dash
- asterisk
- plus
- dash * asterisk + plus
TIL but why are your bullets square and mine are circles?
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:
![post maxi tweet](https://hexbear.net/pictrs/image/456a406f-0cbc-4a0b-8062-d89a078ff465.png)
or
![It's post maxi. If grossing in hhyswixw](https://hexbear.net/pictrs/image/456a406f-0cbc-4a0b-8062-d89a078ff465.png)
or
![https://xcancel.com/cushbomb/status/1713822219074457833](https://hexbear.net/pictrs/image/456a406f-0cbc-4a0b-8062-d89a078ff465.png)
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:
![It's post maxi. If grossing in hhyswixw](https://hexbear.net/pictrs/image/456a406f-0cbc-4a0b-8062-d89a078ff465.png "It's post maxi. If grossing in hhyswixw")
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
![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