Amon to FediverseEnglish • 18 hours agoBy the way, you can have Markdown in Lemmy post titlesmessage-square43arrow-up199arrow-down14
arrow-up195arrow-down1message-squareBy the way, you can have Markdown in Lemmy post titlesAmon to FediverseEnglish • 18 hours agomessage-square43
minus-squareAmonOPlinkEnglish8•edit-217 hours agoI mean, code could work and maybe superscript or subscript and that’s about it I think
minus-square@[email protected]linkfedilinkEnglish5•17 hours agoYou can, and it’ll probably get annoying if everyone catches on!
minus-square@[email protected]linkfedilinkEnglish2•17 hours agoAre sub and superscript officially supported by markdown now? Or is that a Lemmy-specific extension?
minus-square@[email protected]linkfedilinkEnglish3•16 hours agoLemmy-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
I mean,
code
could work and maybe superscript or subscript and that’s about it I thinkCan you create headings in headings?
You can, and it’ll probably get annoying if everyone catches on!
OK, I will never use it again.
~oh no~
deleted by creator
Are sub and superscript officially supported by markdown now? Or is that a Lemmy-specific extension?
Lemmy-ui uses
markdown-it
: https://github.com/LemmyNet/lemmy-ui/blob/main/package.json#L65Markdown-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