Skip to content

Releases: mcanouil/quarto-preview-colour

PREVIEW COLOUR 1.6.0

31 May 12:57
b6042ad

Choose a tag to compare

Installation

quarto add mcanouil/quarto-preview-colour@1.6.0

Changelog

Bug Fixes

  • fix: Repair the HSL inline pattern so values such as hsl(240, 100%, 50% ) and hsl(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). and hsla(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() and hsla() 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 currentColor and transparent. HTML renders the swatch with color: currentColor or color: 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 the lua-env JSON feature). Set to true to write preview-colour.json, or supply a file path. Each entry records the original token, hex (when available), alpha, keyword, css, and the source (code, text, or text-multitoken).

Documentation

  • docs: Document alpha, keyword, and JSON-export features in README and example.qmd.
  • docs: Add a performance note (the filter scans every Str element; 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 json to _schema.yml so editors can validate and autocomplete the bulk-export option.
  • feat: Add a preview-colour-json snippet 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

15 Apr 20:58
1793af6

Choose a tag to compare

Installation

quarto add mcanouil/quarto-preview-colour@1.5.1

Changelog

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

23 Mar 23:10
848b2fd

Choose a tag to compare

Installation

quarto add mcanouil/quarto-preview-colour@1.5.0

Changelog

Refactoring

  • refactor: Replace monolithic utils.lua with 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

21 Feb 12:58
51b134f

Choose a tag to compare

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

11 Feb 21:40
49c808d

Choose a tag to compare

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

28 Jan 17:15
1aea836

Choose a tag to compare

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

25 Oct 16:09
edc0191

Choose a tag to compare

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

16 Oct 08:15
24ed9a5

Choose a tag to compare

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-quarto

What'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

22 Jul 11:32
dcf41f3

Choose a tag to compare

What's Changed

  • refactor: enhance filter logic and documentation by @mcanouil in #30
  • refactor: improve format, colour, and escape handling by @mcanouil in #31
  • ci: bump version for release 🚀 by @github-actions[bot] in #32

Full Changelog: 1.0.2...1.0.3

PREVIEW COLOUR 1.0.2

21 Jul 15:46
0c114c5

Choose a tag to compare

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