116
submitted 6 months ago* (last edited 6 months ago) by amon@lemmy.world to c/fediverse@lemmy.world

EDIT: on web, it renders like this

you are viewing a single comment's thread
view the rest of the comments
[-] JohnnyEnzyme@lemm.ee 7 points 6 months ago

(unlike Reddit, for example)

I use bold and italic a lot in post titles. Some of the other stuff wouldn't make much sense I don't think, but every little bit helps.

[-] amon@lemmy.world 8 points 6 months ago* (last edited 6 months ago)

I mean, code could work and maybe ^superscript^ or ~subscript~ and that's about it I think

[-] infeeeee@lemm.ee 6 points 6 months ago

Can you create headings in headings?

[-] smeg@feddit.uk 6 points 6 months ago

You can, and it'll probably get annoying if everyone catches on!

[-] infeeeee@lemm.ee 6 points 6 months ago

OK, I will never use it again.

[-] smeg@feddit.uk 3 points 6 months ago
[-] smeg@feddit.uk 2 points 6 months ago

Are sub and superscript officially supported by markdown now? Or is that a Lemmy-specific extension?

[-] infeeeee@lemm.ee 3 points 6 months ago

Lemmy-ui uses markdown-it: https://github.com/LemmyNet/lemmy-ui/blob/main/package.json#L65

Markdown-it follows the CommonMark spec with extensions: https://spec.commonmark.org/current/ As I see superscript is not part of the spec, but listed in the markdown-it readme as a plugin, so I guess it's coming from there: https://github.com/markdown-it/markdown-it?tab=readme-ov-file#syntax-extensions

They are also listed in package.json:

    "markdown-it-sub": "^2.0.0",
    "markdown-it-sup": "^2.0.0",

https://github.com/LemmyNet/lemmy-ui/blob/main/package.json#L73

Lemmy docs about markdown support: https://join-lemmy.org/docs/users/02-media.html#text

[-] Pamasich@kbin.earth 1 points 6 months ago

I think it's fine to use unique platform features like this, but if you're actually using this actively, be aware that not everyone will see your titles as you intended them. It's only Lemmy users that can see it actually render "properly", everyone else just sees the plaintext Markdown symbols.

this post was submitted on 13 Jan 2025
116 points (96.8% liked)

Fediverse

35762 readers
33 users here now

A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).

If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!

Rules

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration)

founded 2 years ago
MODERATORS