Fold/hide paragraph in Quarto HTML document

I'm writing a document using Quarto with no code block (pure markdown), to process into HTML.

Is it possible to hide one or several paragraph with a "spoiler" or "click here for details" button?

Click here

Something like that

2 Likes

Within Quarto you could leverage Collapsible callouts: Quarto – Callout Blocks

You should also be able to use the <details> tag directly in your document

I think this should work.

3 Likes

Perfect, especially since the <details> tag even works with pure Pandoc md (as I don't always use Quarto)!

Thank you!

@cderv : normally I think a 'like' enough for a nice reply/solution.
But this earns a 'like it very much'.
Also thanks for your other contributions to the forum!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.