Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mcanouil/quarto-preview-colour

A Quarto extension to add preview colour as a coloured symbol next to colour code.
https://github.com/mcanouil/quarto-preview-colour

preview-colour quarto quarto-extension quarto-pub quartopub

Last synced: 2 months ago
JSON representation

A Quarto extension to add preview colour as a coloured symbol next to colour code.

Awesome Lists containing this project

README

        

# Preview Colour Extension For Quarto

`preview-colour` is an extension for [Quarto](https://quarto.org) to provide access to LUA objects as metadata.

## Installing

```bash
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:

```yaml
filters:
- preview-colour
```

Then define the following metadata to enable the extension for inline code and text:

```yaml
preview-colour:
code: true
text: true
```

## Example

Here is the source code for a minimal example: [example.qmd](example.qmd).