204

Given that Jebora has markdown support, just throwing a few bits in here...

bold and italic

  • li item 1
  • li item 2

Quote

heading

link

inline code

Code block
// Not trying xss just doing examples
alert("example")

~~strike~~

~sub~

^up^

you are viewing a single comment's thread
view the rest of the comments
[-] chaorace@lemmy.sdf.org 14 points 1 year ago* (last edited 1 year ago)

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)
  • Lemmy autolinking:
    • NOTE: No link will be inserted if the viewer is browsing an instance where the resource is not yet known/blocked
    • Communities: [!fediverse@lemmy.ml](/c/fediverse@lemmy.ml)!fediverse@lemmy.ml (link ref: /c/fediverse@lemmy.ml)
      • Kbin-style is also supported: /m/fediverse@lemmy.ml→/m/fediverse@lemmy.ml
    • Users: /u/chaorace@lemmy.sdf.org→ /u/chaorace@lemmy.sdf.org (link ref: /u/chaorace@lemmy.sdf.org)
  • Typography substitutions:
    • (c)→©
    • (tm)→™
    • (r)→®
    • +-→±
    • ...→…
    • ---→—
    • --→–
    • ???? (>= 4x)→???
    • !!!! (>= 4x)→!!!
  • Github-flavor Markdown extensions:
    • Tables
    • Strikethrough: ~~example~~→~~example~~ (image)
  • Subscript/Superscript:
    • Sub: example~sub~→example~sub~ (image)
    • Super: example^super^→example^super^ (image)
  • Footnotes:
    • Inline part: example[^notename]→example[^notename] (image)
    • Bottom part: [^notename]: Note text→(see bottom of post) (image)
      • Important: the bottom part must be at the very end of the post, otherwise both halves of the footnote will break!
  • Ruby Text: {example base text|example ruby text}→{example base text|example ruby text} (image)
    • "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: {凄|すご}い!→{凄|すご}い!(image)
  • Spoilers:
    visible part examplehidden part example
  • Image/Video embedding: ![accessibility alt-text example](https://i.imgur.com/9nVMRqa.jpeg) => accessibility alt-text example (image)

[^notename]: Note text

[-] orphiebaby@lemmy.world 2 points 1 year ago

I think this should be put on a page someone on Lemmy. Somewhere that's easy to find. The tables and stuff too.

[-] oohgodyeah@lemmy.world 2 points 1 year ago* (last edited 1 year ago)

Your hyperlink to the Official Spec doesn't work for me on Vger. It launches my web browser without a URL and hiding down on the link doesn't reveal its destination.

[-] chaorace@lemmy.sdf.org 3 points 1 year ago

Nice catch. I messed up the formatting on that link by putting an extra pair of parenthesis in there -- fixed now.

[-] oohgodyeah@lemmy.world 3 points 1 year ago

Confirmed that link is working now. Thanks for this useful info!

this post was submitted on 12 Jul 2023
204 points (99.0% liked)

Sync for Lemmy

15088 readers
2 users here now

👀


Welcome to Sync for Lemmy!

Download Sync for Lemmy


Welcome to the official Sync for Lemmy community.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Community Rules


1- No advertising or spam.

All types of advertising and spam are restricted in this community.



Community Credits

Artwork and community banner by: @MargotRobbie@lemmy.world


founded 1 year ago
MODERATORS