Closed cderv closed 2 years ago
I really like this and think its worth going all the way with multi image support (it will be awesome to be able to make a gallery out of multiple figure outputs). I think the nested syntax is a great to deal with namespace / conflicts and reads well too...
Cool ! I will give a try to the multiple image in chunk then.
I'll share the PR for feedback on the syntax with the others, before we merge this and decide on the syntax
Sounds great, thanks for pursuing this I think it is a big improvement and will make lightbox really useful with code cells, which is awesome!
@dragonstyle I have added support for multiple now.
This works
```{r}
#| fig-cap:
#| - Caption for first plot
#| - Caption for second plot
#| lightbox:
#| group: cars
#| description:
#| - This is the decription for first graph
#| - This is the decription for second graph
plot(mtcars)
plot(cars)
This is really great!
This is a proof of concept of how we can use chunk option to configure lightbox individually for plots.
Basically, we leverage the fact that we pass chunk option untouched and encoded to JSON to our
.cell
div.Here I am proposing this syntax