Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/mcanouil/quarto-preview-colour
- Owner: mcanouil
- License: mit
- Created: 2023-06-14T21:12:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-20T21:50:49.000Z (6 months ago)
- Last Synced: 2024-10-30T10:40:22.392Z (3 months ago)
- Topics: preview-colour, quarto, quarto-extension, quarto-pub, quartopub
- Language: Lua
- Homepage: http://m.canouil.dev/quarto-preview-colour/
- Size: 28.3 KB
- Stars: 21
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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).