modal is an extension for Quarto that builds Bootstrap modals from a div and a shortcode, so the dialog and its content stay markdown.
Modals are only available for HTML formats that carry Bootstrap.
quarto add mcanouil/quarto-modal@1.5.2This will install the extension under the _extensions subdirectory.
If you're using version control, you will want to check in this directory.
The full documentation lives at https://m.canouil.dev/quarto-modal/: every dialog option, the button and link forms, the accessibility attributes, and modals you can open.
example.qmd is a short, standalone starting point you can copy.
MIT.