Borrowing from @[email protected]'s post and @[email protected]'s post:
For anyone interested, here’s the Lemmy markdown configuration. As you can see, Lemmy’s website UI supports the full commonmark spec (tutorial / official spec), plus a bunch of extensions. I don’t think anyone’s fully documented these yet, so I’ll try doing so below. Apologies in advance to mobile users, this is probably gonna get ugly (see included image links for how it should look):
- URL autolinking (plaintext URLs automatically turn into links, as recognized by Lemmy... but some may not be autorecognized due to new domain extensions)
- Manually linking URL:
[name of link](https://actual.link/)
→ name of link
- Lemmy autolinking:
- Typography substitutions:
(c)
→ ©
(tm)
→ ™
(r)
→ ®
+-→
→ ±
...
→ …
---
→ —
--
→ –
????
(>= 4x) → ???
!!!!
(>= 4x) → !!!
- horizontal rule (line between paragraphs)
---
→
-
**bold**
→ bold
-
*italics*
OR _italics_
→ italics
-
# Headings
→ # Headings (1 # for level1 heading, up to 5 #'s; must be at start of new line) [requires space between the #'s
and the text]
-
[Link text](https://link.com/)
→ Link text
-
Github-flavor Markdown extensions:
- Tables
- Strikethrough:
~~example~~
→ ~~example~~
-
Subscript/Superscript:
- Sub:
example~sub~
→ example~sub~
- Super:
example^super^
→ example^super^
-
Footnotes:
- Inline part:
example[^notename or a number]
→ example[^1]
- Bottom part:
[^1]: My reference
(must be placed at VERY end of post to work.)
-
Ruby Text: {example base text|example ruby text}
→ {example base text|example ruby text}
- “Ruby” is an html-ism for special pronunciation aids which frequently appear within young person’s media where the language includes non-phonetic characters (e.g.: Chinese characters)
- Japanese Furigana example: {凄|すご}い!→ 凄い!
-
Spoilers:
visible text
hidden part example
visible text
hidden part example
`inline code
` → inline code
code block:
```
println(“Hello World!”)
println("Line 2")
```
becomes
println(“Hello World!”)
println("Line 2")
OR
4 spaces at beginning of each line to be included in the code block becomes
this is a code block
line 2
Code Block Syntax Highlighting!
When after using the three backticks to start a code block, specify the language.
Rust:
``` rust
// This is the main function
fn main() {
// Print text to the console
println!("Hello World!");
}
```
becomes:
// This is the main function
fn main() {
// Print text to the console
println!("Hello World!");
}
No language specified, defaults to "C" language:
// This is the main function
fn main() {
// Print text to the console
println!("Hello World!");
}
Text:
``` text
// This is the main function
fn main() {
// Print text to the console
println!("Hello World!");
}
```
becomes:
// This is the main function
fn main() {
// Print text to the console
println!("Hello World!");
}
Python:
``` python
// This is the main function
fn main() {
// Print text to the console
println!("Hello World!");
}
```
becomes:
// This is the main function
fn main() {
// Print text to the console
println!("Hello World!");
}
Finally:
If I want to write a character that will normally be interpreted as any of the above, I can escape the character with a backslash → \ ...
So you can write something like \^this
→ ^this
[^1]: To make this footnote, I used the formatting defined above, preceding this text with "[^1]:
"
I never stopped using it. There are privacy issues with all browsers. I like how Firefox works, but I regularly end up using Firefox, chrome, and edge all at the same time. I use them for some compartmentalization of my tasks and work lol