Skip to content
Discussion options

You must be logged in to vote

From there, a couple of side questions are:

  1. Can the name of the rendered quarto document be modified during the save?
  2. Is there a way to introduce a simplified class name for the code cell? For instance, if we have:
```{.content-visible when-profile="production"}
# Some code
```

We would want to use a new class name such as .env-prod to decrease the amount of typing.

```{.env-prod}
# Some code
```

As you have noticed, this is currently not documented very well, but we're working on improving it. With that said, let me explain to you here how to achieve the outcome of your second question.

What we're going to do is we'll write a Lua filter that converts .env-prod to a conditional block.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@coatless
Comment options

@cscheid
Comment options

Answer selected by coatless
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
extensions relates to Quarto extensions mechanism
2 participants