You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add attributes as code cells option (alongside classes) #6253
Originally posted by mcanouil May 17, 2023
From #5456 and yihui/knitr#2256, I believe it would be very useful to be able to add any kind of attributes and not only classes to cell container.
For instance, knitr offers class-* and the general attr-* options to customise code cells.
This attributes could help leverage many Bootstrap features already embedded in Quarto, such as popover or tooltip which uses data-bs-* attributes.
Currently, any non-Quarto attributes that are present in the Quarto metadata for code cells will be included in the output code cell div as a 'data' attribute. For example:
Activity
dragonstyle commentedon Nov 28, 2023
Currently, any non-Quarto attributes that are present in the Quarto metadata for code cells will be included in the output code cell div as a 'data' attribute. For example:
results in:
I think this should be enough (and so I'm closing this), but re-open if there is more we need to do!