Skip to content
Discussion options

You must be logged in to vote

quite a complex topic today - we would need to think of the best way to allow such addition.

The Div of class cell is really something from quarto, with quite some internal usage.

The two mechanism in Quarto are the following:

  • classes allows to set classes to Div of class cell.
  • Any unknown yaml option will be set as attributes to this Div too. (see #6253)

an id of the div is quite specific, and there is no mechanism for id.

This means you could do

---
format: native
---

```{r}
#| custom-id: '#histplot'

hist(rnorm(5))
```
Pandoc
  Meta { unMeta = fromList [] }
  [ Div
      ( "" , [ "cell" ] , [ ( "custom-id" , "#histplot" ) ] )
      [ CodeBlock
          ( "" , [ "r" , "cell-code" ] …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@andrewpbray
Comment options

@andrewpbray
Comment options

@cderv
Comment options

@andrewpbray
Comment options

Answer selected by andrewpbray
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants