Add html <details> element to allowed comment syntax

10 points by joshka


I think it would be nice to be able to throw some extra detail in comments from time to time that shouldn't be generally shown without clicking expand. Things which aren't core to the discussion but help support the comment are worth doing here. Opening in meta because this feels less like the sort of thing that belongs in a github issue and more like something that would be useful for users of the site to discuss / have opinions on.

I.e.:

<details><summary>some text</summary> The rest of the long post </details>
gerikson

FWIW, the Lemmy instance I hang out on has a "spoiler" feature that works a bit like proposal.

Being a Lemmy instance it is currently down. The syntax is weird enough that there's a specific edit button to insert it, but it does integrate into the local Markdown dialect without the need to resort to HTML[1]

edit here's the syntax

::: spoiler <summary text>
<content>
::: 

I am negative-to-neutral to the suggestion itself. I don't know if the added complexity would really be worth it.


[1] personally I am a big fan of embedding HTML in Markdown, seeing it's a core feature of the original implementation, but it does have obvious security issues.

koala

Maybe GitHub Markdown-style footnotes? The footnotes block could be collapsed by default. My main issue with this is that I'm not sure it can be done completely JS-less, whereas summary/details can.

I don't like HTML in Markdown. jgm's Markdown successor has attributes which could be used for similar stuff. It's unfortunate that Markdown dominates so much.

gir

Alternatively, just post two comments (i did that once to separate out some less relevant details).

<joke>you can even farm double the karma this way 🤪️</joke>