Skip to content

Option to customize each cr-section #158

@trangdata

Description

@trangdata

Currently, if I want to adjust, say, narrative-sidebar-width, for a particular cr-section, I have to wrap it in a div like below. It would be neat if I could specify this like how I would layout, so something like ::::{.cr-section narrative-sidebar-width="3fr"}.

---
title: My First Closeread
format: closeread-html
---

Hello World!

<div style="--cr-narrative-sidebar-width: 3fr;">
::::{.cr-section}
This is trigger 1.
@cr-mpg

:::{#cr-mpg}
```{r mpg}
library(ggplot2)
ggplot(mtcars, aes(x = mpg, y = hp)) +
  geom_point()
```
:::
::::
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions