Amon@lemmy.world to Fediverse@lemmy.worldEnglish · edit-25 hours agoBy the way, you can have Markdown in Lemmy post titlesmessage-squaremessage-square48fedilinkarrow-up1121arrow-down14file-text
arrow-up1117arrow-down1message-squareBy the way, you can have Markdown in Lemmy post titlesAmon@lemmy.world to Fediverse@lemmy.worldEnglish · edit-25 hours agomessage-square48fedilinkfile-text
minus-squaresmeg@feddit.uklinkfedilinkEnglisharrow-up2·1 day agoAre sub and superscript officially supported by markdown now? Or is that a Lemmy-specific extension?
minus-squareinfeeeee@lemm.eelinkfedilinkEnglisharrow-up3·1 day 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
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