Releases: mcanouil/quarto-preview-colour
Releases · mcanouil/quarto-preview-colour
PREVIEW COLOUR 1.6.0
Installation
quarto add mcanouil/quarto-preview-colour@1.6.0Changelog
Bug Fixes
- fix: Repair the HSL inline pattern so values such as
hsl(240, 100%, 50% )andhsl(240, 100%, 50%)are detected; previously a stray literal in the regex (%%s*instead of%%%s*, plus a missing%s*before the second comma) rejected any whitespace before the closing parenthesis or before the comma after the second percentage. - fix: Preserve trailing punctuation when a multi-token colour ends a sentence;
rgb(255, 0, 0).andhsla(120, 100%, 50%, 0.25).in plain text are now detected, then the trailing punctuation is reinserted unchanged.
New Features
- feat: Add alpha-channel support for
rgba()andhsla()in both inline code and plain text. HTML renders the alpha-bearing colour faithfully, while LaTeX, Typst, DOCX, and PPTX render the opaque hex and emit a one-time warning. - feat: Recognise the CSS keyword colours
currentColorandtransparent. HTML renders the swatch withcolor: currentColororcolor: transparent; other formats skip the swatch with a one-time warning. - feat: Add bulk JSON export of detected colours via
extensions.preview-colour.json(mirroring thelua-envJSON feature). Set totrueto writepreview-colour.json, or supply a file path. Each entry records the original token, hex (when available), alpha, keyword, css, and the source (code,text, ortext-multitoken).
Documentation
- docs: Document alpha, keyword, and JSON-export features in
READMEandexample.qmd. - docs: Add a performance note (the filter scans every
Strelement; cost is linear in document size). - docs: Add a deprecation timeline for the legacy top-level
preview-colour:configuration; removal is planned for v2.0.0.
Schema and Snippets
- feat: Add
jsonto_schema.ymlso editors can validate and autocomplete the bulk-export option. - feat: Add a
preview-colour-jsonsnippet to_snippets.json.
What's Changed
- feat: Address review findings and bump to v1.6.0 by @mcanouil in #55
- ci: bump version for release 🚀 by @mcanouil-dev[bot] in #56
Full Changelog: 1.5.1...1.6.0
PREVIEW COLOUR 1.5.1
Installation
quarto add mcanouil/quarto-preview-colour@1.5.1Changelog
Refactoring
- refactor: Synchronise shared module (
logging.lua) with canonical version.
What's Changed
- ci: update release workflow to use centralised reusable workflow by @mcanouil in #53
- ci: bump version for release 🚀 by @mcanouil-dev[bot] in #54
Full Changelog: 1.5.0...1.5.1
PREVIEW COLOUR 1.5.0
Installation
quarto add mcanouil/quarto-preview-colour@1.5.0Changelog
Refactoring
- refactor: Replace monolithic
utils.luawith focused modules (string.lua,logging.lua,metadata.lua,pandoc-helpers.lua,html.lua,paths.lua,colour.lua).
What's Changed
- refactor: update utils.lua to generic version with get_extension_config by @mcanouil in #49
- fix: update project path resolution to use pandoc.path.join by @mcanouil in #50
- refactor: replace monolithic utils.lua with focused modules by @mcanouil in #51
- ci: bump version for release 🚀 by @mcanouil-dev[bot] in #52
Full Changelog: 1.4.0...1.5.0
PREVIEW COLOUR 1.4.0
What's Changed
- feat: add _schema.yml for configuration validation and IDE support by @mcanouil in #44
- chore: add $schema version URI to _schema.yml by @mcanouil in #46
- feat: add extension-provided code snippets by @mcanouil in #47
- ci: bump version for release 🚀 by @mcanouil-dev[bot] in #48
Full Changelog: 1.3.1...1.4.0
PREVIEW COLOUR 1.3.1
What's Changed
- ci: bump version for release 🚀 by @mcanouil-dev[bot] in #43
Full Changelog: 1.3.0...1.3.1
PREVIEW COLOUR 1.3.0
What's Changed
- feat: support multiple colours inline and embedded colours by @mcanouil in #37
- feat: add customisable glyph for colour preview by @mcanouil in #38
- feat: add CSS named colour support by @mcanouil in #39
- feat: support text mode colours with spaces by @mcanouil in #40
- ci: bump version for release 🚀 by @mcanouil-dev[bot] in #42
New Contributors
- @mcanouil-dev[bot] made their first contribution in #42
Full Changelog: 1.1.0...1.3.0
PREVIEW COLOUR 1.1.0
What's Changed
- refactor: use module and enhance extension by @mcanouil in #35
- ci: bump version for release 🚀 by @github-actions[bot] in #36
Full Changelog: 1.0.4...1.1.0
PREVIEW COLOUR 1.0.4
Documentation
Update the documentation to use the complete filter declaration to ensure the feature works with the {{< brand ... >}} shortcode:
filters:
- path: preview-colour
at: post-quartoWhat's Changed
- ci: bump version for release 🚀 by @github-actions[bot] in #34
Full Changelog: 1.0.3...1.0.4
PREVIEW COLOUR 1.0.3
PREVIEW COLOUR 1.0.2
What's Changed
- fix: no colour mark on "partial matches" by @mcanouil in #27
- ci: bump version for release 🚀 by @github-actions[bot] in #29
Full Changelog: 1.0.1...1.0.2