Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/royfrancis/quarto-accordion

A quarto extension to add accordions to html format
https://github.com/royfrancis/quarto-accordion

quarto quarto-extension quarto-filter quarto-shortcode

Last synced: 25 days ago
JSON representation

A quarto extension to add accordions to html format

Awesome Lists containing this project

README

        

# accordion

A quarto shortcode extension to add [Bootstrap accordion component](https://getbootstrap.com/docs/5.1/components/accordion/) for html format.

![](preview.jpg)

## Install

- Requires Quarto >= 1.4.0
- In the root of the quarto project, run in terminal:

```
quarto add royfrancis/quarto-accordion
```

This will install the extension under the `_extensions` subdirectory.

## Usage

```
---
title: Accordion
accordion:
- accordion-1:
- header: Click here to view contents
body: This is the body content
filters:
- accordion
---

{{< accordion accordion-1 >}}
```

For more examples and usage guide, see [here](https://royfrancis.github.io/quarto-accordion).

---

2024 • Roy Francis