quarto-preview-colour
quarto-preview-colour copied to clipboard
A Quarto extension to add preview colour as a coloured symbol next to colour code.
Preview Colour Extension For Quarto
preview-colour
is an extension for Quarto to provide access to LUA objects as metadata.
Installing
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.
Using
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
Example
Here is the source code for a minimal example: example.qmd.