OpenUserJS.org icon indicating copy to clipboard operation
OpenUserJS.org copied to clipboard

`details` and `summary` HTML tag support

Open sjehuda opened this issue 1 year ago • 1 comments

What happened?

This code works only upon preview.

<details>
</details>

What did you expect to happen?

Not collapsed

Click to see what happens.

What the problem might be?

No response

sjehuda avatar May 31 '24 07:05 sjehuda

As I mentioned at https://openuserjs.org/garage/Markdown_doesnt_work_inside_spoiler_tags.#comment-18bb7b3497e the details and summary tag are currently unsupported.

I had a conversation with @sizzlemctwizzle a while back where he wanted certain things allowed vs not allowed. At that time those two tags weren't in the GH arsenal of allowed... however they obviously are now.

My only concern is that someone will have to click all the little arrows in case someone spams things inside the "spoiler" as that account calls this... although not sure that will be a huge issue unless it is made one and then we could just remove the feature.

Anyhow I'll leave it open for @sizzlemctwizzle to recomment on publicly since he's the deciding factor here for the allow list of html tags during sanitizing.

Martii avatar May 31 '24 14:05 Martii