https://github.com/thinkr-open/quarto-detective
Pointing out specific code in your presentation 🔎✨✨
https://github.com/thinkr-open/quarto-detective
quarto quarto-extension
Last synced: 10 months ago
JSON representation
Pointing out specific code in your presentation 🔎✨✨
- Host: GitHub
- URL: https://github.com/thinkr-open/quarto-detective
- Owner: ThinkR-open
- Created: 2024-11-28T15:54:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-29T10:35:38.000Z (over 1 year ago)
- Last Synced: 2025-07-31T00:30:32.906Z (11 months ago)
- Topics: quarto, quarto-extension
- Language: JavaScript
- Homepage: https://thinkr-open.github.io/quarto-detective/#/title-slide
- Size: 1.84 MB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/ThinkR-open/quarto-detective/actions/workflows/deploy.yml)
# Detective Extension For Quarto
This extension provides a `detective` tool for RevealJS presentations. 🔎
`detective` will highlight a code block in your presentation. It is useful for pointing out specific code in your presentation.
## Installation
You can install the extension with the following command:
```bash
quarto add ThinkR-open/quarto-detective
```
## Usage
Add the plugin to your quarto document:
```yaml
revealjs-plugins:
- detective
```
Discover the `detective` tool in the presentation below:
[https://thinkr-open.github.io/quarto-detective/](https://thinkr-open.github.io/quarto-detective/)
## Example
Highlight `ggplot` and `aes` in a chunk:
````
:::{.detective data-detective-search="ggplot, aes"}
```{r}
#| echo: true
#| eval: false
ggplot(data = iris) +
aes(
x = Sepal.Length,
y = Sepal.Width
) +
geom_point()
```
:::
````
