pull down to refresh

Just wondering... why not?

there's not particular reason clients couldn't just support it. even nip1 is just text. afaik the nips don't specify how to treat it. if they do, that seems ridiculous. just parse it as markdown.

reply
1111 sats \ 1 reply \ @ek 17 Feb 2024
afaik the nips don't specify how to treat it. if they do, that seems ridiculous. just parse it as markdown.

NIP-01 does though.

Content that must be parsed, such as Markdown and HTML, should not be used. Clients should also not parse content as those.
reply

damn. roasted. haha thanks. seems ridiculous that markdown would be called out to not be parsed. perhaps it's an xss attack mitigation

reply

deleted by author

You need to be more specific. Long-form content as specified in NIP-23 already supports Markdown. See habla.news. You mean short text notes? NIP-01 explicitly mentions that clients should not parse those as HTML or Markdown:

Content that must be parsed, such as Markdown and HTML, should not be used. Clients should also not parse content as those.

Why that is I don't know, I can only speculate and I'd rather not.

reply

Twitter doesn't do markdown, why aren't you whining to them?

Allowing markdown excludes text-only clients and forces GUIs on people. Obviously you don't care about that, but a lot of people do. Get over it.

reply

Was just a question, mate. Take it easy. Any particular reason to be anon on this topic?

reply

What's Twitter?

reply

I think you replied to the wrong person

reply

Yes, I mean NIP-1, the most used one! I also assume most of the work is done on the client side and how to render the string contained on it!

I was wondering why NIP-23 yes and not (yet) on NIP-01

reply

Yea, this seems like a client thing, not necessarily a protocol thing. Kinda like how on SN, GitHub, etc, it supports markdown, but that doesn't mean you have to use it.

reply

Wut? If people use it when they produce content, clients are forced to use it when rendering that content.

reply

Some clients like Amethyst supported it initially, but it was frowned upon and it got removed for short notes. Having formatting results in a different type of content being posted and I think I agree it makes sense to only do formatting for long form notes.

reply