preview-colour
is an extension for Quarto to provide access to LUA objects as metadata.
quarto add mcanouil/quarto-preview-colour
This will install the extension under the _extensions
subdirectory.
If you're using version control, you will want to check in this directory.
Add the following to your YAML header:
filters:
- preview-colour
Then define the following metadata to enable the extension for inline code and text:
preview-colour:
code: true
text: true
Here is the source code for a minimal example: example.qmd.