By the way, you can have `Markdown` in Lemmy post titles
from amon@lemmy.world to fediverse@lemmy.world on 13 Jan 20:48
https://lemmy.world/post/24241974

EDIT: on web, it renders like this

#fediverse

threaded - newest

vk6flab@lemmy.radio on 13 Jan 20:52 next collapse

Word of caution, it doesn’t render on Connect for Lemmy.

steventhedev@lemmy.world on 13 Jan 20:59 next collapse

or in Jerboa

borth@sh.itjust.works on 13 Jan 21:05 collapse

Works in Voyager!

homesweethomeMrL@lemmy.world on 13 Jan 22:50 next collapse

Boom.

AceSLS@ani.social on 13 Jan 23:36 collapse

Not for me

amon@lemmy.world on 13 Jan 21:07 next collapse

Hmm, but the best part about markdown is that it is human readable regardless so it should still be fine

rickyrigatoni@lemm.ee on 14 Jan 03:19 collapse

i am not human

catloaf@lemm.ee on 13 Jan 22:24 next collapse

Nor Boost. It does in Raccoon, though.

lemmyng@lemmy.ca on 14 Jan 00:34 next collapse

Renders in Summit, but I turned that off because any post title starting with # is rendered as h1.

IronKrill@lemmy.ca on 14 Jan 03:00 next collapse

Or Thunder

kat@orbi.camp on 14 Jan 03:30 collapse

Renders fine in Sync

JohnnyEnzyme@lemm.ee on 13 Jan 20:58 next collapse

(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 on 13 Jan 21:08 next collapse

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

infeeeee@lemm.ee on 13 Jan 21:16 next collapse

Can you create headings in headings?

smeg@feddit.uk on 13 Jan 21:25 next collapse

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

infeeeee@lemm.ee on 13 Jan 22:38 collapse

OK, I will never use it again.

smeg@feddit.uk on 13 Jan 22:40 collapse

~oh no~

[deleted] on 13 Jan 21:39 collapse

.

smeg@feddit.uk on 13 Jan 21:25 collapse

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

infeeeee@lemm.ee on 13 Jan 22:36 collapse

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

Markdown-it follows the CommonMark spec with extensions: 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: github.com/markdown-it/markdown-it?tab=readme-ov-…

They are also listed in package.json:

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

github.com/LemmyNet/lemmy-ui/blob/…/package.json#…

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

Pamasich@kbin.earth on 14 Jan 08:01 collapse

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.

JohnnyEnzyme@lemm.ee on 15 Jan 13:33 collapse

Hmm, sounds like a good point. Here’s my sub:
lemm.ee/c/eurographicnovels

Can you tell me how our formatting might be messing search engines and stuff…?

bdonvr@thelemmy.club on 13 Jan 21:27 next collapse

You can also edit them after the fact unlike other platforms

perviouslyiner@lemmy.world on 13 Jan 21:30 next collapse

Be careful of the character limit on each viewer, as they can “trim” your title in the middle of some markup tag and just display part of it as the title.

Fitik@fedia.io on 13 Jan 21:42 next collapse

@amon Doesn't render it on Mbin

andrew_s@piefed.social on 13 Jan 22:36 next collapse

You can, but maybe you shouldn't. Given that this post is in the fediverse community, I don't feel too bad about mentioning that Lemmy is part of a federated network with PieFed and MBIN (I try not to bollock on too much about the platform I happen to be using).

In the ActivityPub JSON for this post, there is no indication that this field contains MarkDown. If anything, it says the opposite, it says it contains HTML. It's therefore not unreasonable for other platforms to render it as such.

Given this, and the poor support for mobile clients indicated in the comments, and the fact that it's only a subset of MarkDown tags, but include ones that aren't part of CommonMark standard, I'd argue that it's not necessarily a good idea.

schnurrito@discuss.tchncs.de on 13 Jan 22:56 next collapse

Do you know a way to see the ActivityPub JSON for fediverse objects?

andrew_s@piefed.social on 13 Jan 23:02 next collapse

Yes - it's easy to do from a command line. For this post, it would be:

curl --header 'accept: application/activity+json' --location https://lemmy.world/post/24241974 | jq .

it looks like

{  
  "@context": [  
    "https://join-lemmy.org/context.json",  
    "https://www.w3.org/ns/activitystreams"  
  ],  
  "type": "Page",  
  "id": "https://lemmy.world/post/24241974",  
  "attributedTo": "https://lemmy.world/u/amon",  
  "to": [  
    "https://lemmy.world/c/fediverse",  
    "https://www.w3.org/ns/activitystreams#Public"  
  ],  
  "name": "By the way, you can have `Markdown` in Lemmy post titles",  
  "cc": [],  
  "mediaType": "text/html",  
  "attachment": [],  
  "commentsEnabled": true,  
  "sensitive": false,  
  "published": "2025-01-13T20:48:50.824942Z",  
  "language": {  
    "identifier": "en",  
    "name": "English"  
  },  
  "audience": "https://lemmy.world/c/fediverse"  
}   

schnurrito@discuss.tchncs.de on 13 Jan 23:07 collapse

Thanks, will try that out

BentiGorlich@gehirneimer.de on 13 Jan 23:34 collapse

you can use https://browser.pub I like it very much for that use case :)

AA5B@lemmy.world on 13 Jan 23:46 next collapse

In the ActivityPub JSON for this post, there is no indication that this field contains MarkDown. …. it says it contains HTML

This seems like a bug. Regardless of what clients may support, the json ought to accurately describe fields

andrew_s@piefed.social on 14 Jan 00:38 collapse

Another commenter (who's contributed code to Lemmy) pointed to a link that provides the specification for that field: "A simple, human-readable, plain-text name for the object. HTML markup MUST NOT be included."

So in this case, it's more that the JSON looks a bit ambiguous: 'mediaType' is only referring to the format of the text in a post's body, but - unlike me - you'd also need to be aware of the spec to know that it doesn't apply to the title.

flamingos@feddit.uk on 14 Jan 00:00 next collapse

In the ActivityPub JSON for this post, there is no indication that this field contains MarkDown. If anything, it says the opposite, it says it contains HTML. It’s therefore not unreasonable for other platforms to render it as such.

Actually, the name property is explicitly plain text, it shouldn’t contain any type of markup, whether that be markdown or HTML.

andrew_s@piefed.social on 14 Jan 00:31 collapse

Oh, wow. Thanks.

For clarity, I wasn't intending to say that PieFed treats that field as HTML (it treats it as text), I just meant that if you were looking at that JSON, and being a bit lazy like me and not looking at specs, then it wouldn't be unreasonable to assume that the 'mediaType' field also refers to 'name' (rather than a 'content' field which this post doesn't happen to have).

Anyway, this seems to be even more reason why MD shouldn't be put in titles, and front-ends shouldn't be encouraging the practise by rendering it.

kat@orbi.camp on 14 Jan 03:29 collapse

Eh, I’ll probably use italics tho, just like I did * in reddit.

p03locke@lemmy.dbzer0.com on 14 Jan 14:46 next collapse

Also, this gives me real text-on-image-in-Facebook-post-just-to-get-noticed vibes.

If everybody can use Markdown in their post titles, then everybody will use Markdown in their post titles, until it’s a mess of colors, bold, and italics.

fmstrat@lemmy.nowsci.com on 15 Jan 14:06 collapse

Markdown is plain text, so it’s fine to go in the field. It’s also fine for apps to allow OP’s post to look like garbage because there’s no requirement for support.

andrew_s@piefed.social on 15 Jan 17:29 collapse

A comment here distinguishes between the 'plain text' that's allowed by the spec, and MarkDown as a markup language (it's confusingly named, I guess, but that's what Wikipedia categorises it as too)

fmstrat@lemmy.nowsci.com on 15 Jan 17:40 collapse

Oh yea, I just mean that all markdown characters are ASCII, and thus allowed in a plain text field. 😉

misk@sopuli.xyz on 13 Jan 22:39 next collapse

What good is it for if I can’t change post title font to Comic Sans.

motor_spirit@lemmy.world on 13 Jan 23:09 collapse

ABSOLUTELY NOTHIN

rickyrigatoni@lemm.ee on 14 Jan 03:19 collapse

Good god, ya’ll.

driving_crooner@lemmy.eco.br on 13 Jan 23:23 next collapse

If you have markdown on your title, then is not being rendered by Jerboa.

f4f4f4f4f4f4f4f4@sopuli.xyz on 14 Jan 00:35 next collapse

Do you also have the Android weirdness in which the tick marks appear to be in a different place? (Not Jerboa-specific)

<img alt="" src="https://sopuli.xyz/pictrs/image/f36cfb48-8ed9-47ca-bf2c-7507629fd5a6.webp">

driving_crooner@lemmy.eco.br on 14 Jan 12:59 collapse

The tick marks appear correctly for me.

kat@orbi.camp on 14 Jan 03:27 collapse

Sync for lemmy works

AmidFuror@fedia.io on 14 Jan 02:42 next collapse

I'd settle for good spelling and grammar. Once most posters have mastered that, let them play with the formatting.

jagged_circle@feddit.nl on 14 Jan 14:27 next collapse

Lol apparently you can’t

targetx@programming.dev on 14 Jan 14:38 next collapse

Guess it depends on your client because it works for me.

GamingChairModel@lemmy.world on 15 Jan 00:33 collapse

Works for me on Sync.

amon@lemmy.world on 14 Jan 20:30 collapse

What client do you use?

jagged_circle@feddit.nl on 14 Jan 21:32 collapse

Jerboa. Its awful but there’s nothing better

Jtee@lemmy.world on 15 Jan 12:19 next collapse

Voyager

JoshuaFalken@lemmy.world on 15 Jan 13:29 collapse

I still have installed a dozen or so clients, so I opened Voyager to remind myself what it is in comparison to Jerboa, which is also my preferred client.

Suddenly my android device has an iOS user interface. To me, this is lazy development. I’m sure it’s fine for someone accustomed to it, but even having a static header and footer seem out of date.

I’ll stick with Jerboa for the time being.

jagged_circle@feddit.nl on 15 Jan 13:57 next collapse

It wasn’t just the UI. There was something else broken about it since I last tried it.

Jtee@lemmy.world on 15 Jan 22:47 collapse

I’m pretty sure there’s a preference to not be iPhone UI

Blaze@feddit.org on 15 Jan 14:08 collapse

Thunder, Eternity, Connect, Summit?

www.lemmyapps.com

jagged_circle@feddit.nl on 15 Jan 14:12 collapse

I’ll try eternity, thanks. None of the others are on fdroid

J4g2F@lemmy.ml on 15 Jan 20:15 collapse

Thunder is in the IzzyOnDroid repo you can add it in fdroid

jagged_circle@feddit.nl on 15 Jan 21:06 collapse

Thanks but I dont trust third party repos

Feathercrown@lemmy.world on 15 Jan 17:44 next collapse

Oh no

amon@lemmy.world on 15 Jan 19:04 collapse

Oh no indeed

clot27@lemm.ee on 15 Jan 19:49 collapse

Wow, amazing