-
DescriptionHello. For a custom RevealJS format I would like to be able to switch between some colours and ideally it would be with a variable in the yaml header. For example, the
Is this somehow supported already? Maybe with some Lua scripting? |
Beta Was this translation helpful? Give feedback.
Answered by
mcanouil
Feb 7, 2024
Replies: 1 comment 4 replies
-
You need to define a Lua filter and possibly create an extension, see https://quarto.org/docs/extensions/. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want absolutely to use the YAML front matter to define the colour, then you need to learn Lua and define a filter.
Alternatively, you could simply define the colour directly in the SCSS file at the beginning.
And if you want to make a "custom format", then you have to create an extension.