Skip to content
Discussion options

You must be logged in to vote

I don't think that's a good idea.
If the section is not really part of the main document, why not put it in an appendix and make a reference to it?
Or use conditional content to hide/show section depending on condition or profile.

This being said, there is nothing to add in Quarto, everything is already there, i.e., Bootstrap (see https://getbootstrap.com/docs/5.2/components/collapse/).

See Quarto document code.
---
title: "Quarto Playground"
format: html
---

This is a playground for Quarto.


## Section 1

lore ipsum dolor sit amet 1

## Section 2 <a class="btn btn-primary" data-bs-toggle="collapse" href="#multiCollapseExample1" role="button" aria-expanded="false" aria-controls="multiCo…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@mcanouil
Comment options

Answer selected by aaronsgithub
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
html Issues with HTML and related web technology (html/css/scss/js)
2 participants