Skip to content

Releases: mcanouil/quarto-code-window

CODE WINDOW 1.2.0

31 May 09:32
20027f9

Choose a tag to compare

Installation

quarto add mcanouil/quarto-code-window@1.2.0

Changelog

New Features

  • feat: render a highlighted-lines chip alongside the filename in the code-window title bar (HTML, Reveal.js, and Typst).
    Uses Quarto's code-line-numbers attribute or a new code-window-lines attribute.
    The chip can be disabled globally via lines-label: false.
  • feat: collapsible code windows via a <details> wrapper (HTML/Reveal.js).
    Per-block opt-in with the code-window-collapse attribute (true/false/open/closed) or document-wide via the collapse option.
  • feat: expose CSS custom properties (--code-window-macos-icon, --code-window-windows-icon, --code-window-macos-icon-width, --code-window-windows-icon-width, --code-window-icon-height) so users can override the window-button icons.

Documentation

  • docs: document code-line-numbers integration, the new collapse option, and the CSS custom properties for icon overrides.

Refactoring

  • refactor: synchronise shared modules (html, logging, metadata, pandoc-helpers, string) with canonical versions.

What's Changed

  • feat: add highlighted-lines chip, collapsible windows, icon CSS variables by @mcanouil in #33
  • ci: bump version for release 🚀 by @mcanouil-dev[bot] in #34

Full Changelog: 1.1.5...1.2.0

CODE WINDOW 1.1.5

21 Apr 14:15
a5c746f

Choose a tag to compare

Installation

quarto add mcanouil/quarto-code-window@1.1.5

Changelog

Bug Fixes

  • fix: propagate #| filename: chunk option into the code-window wrapper for HTML and Typst output. Previously, using #| filename: (instead of the filename= Pandoc attribute) caused a double .code-with-filename wrapper in HTML and the wrong auto-generated filename in Typst.

What's Changed

  • fix: propagate #| filename: from DecoratedCodeBlock to inner CodeBlock by @mcanouil in #31
  • ci: bump version for release 🚀 by @mcanouil-dev[bot] in #32

Full Changelog: 1.1.4...1.1.5

CODE WINDOW 1.1.4

20 Apr 18:10
e8284e4

Choose a tag to compare

Installation

quarto add mcanouil/quarto-code-window@1.1.4

Changelog

Bug Fixes

  • fix: wrap code-window blocks in a plain Div when they are direct children of a Quarto layout div (layout-ncol, layout-nrow, layout), so that Quarto's grid assigns one column per code block instead of one column per raw block.

What's Changed

  • fix: wrap code-window blocks in layout divs to preserve column count by @mcanouil in #29
  • ci: bump version for release 🚀 by @mcanouil-dev[bot] in #30

Full Changelog: 1.1.3...1.1.4

CODE WINDOW 1.1.3

15 Apr 20:22
23fdf28

Choose a tag to compare

Installation

quarto add mcanouil/quarto-code-window@1.1.3

Changelog

Refactoring

  • refactor: Synchronise shared module (logging.lua) with canonical version.

What's Changed

  • ci: bump version for release 🚀 by @mcanouil-dev[bot] in #28

Full Changelog: 1.1.2...1.1.3

CODE WINDOW 1.1.2

15 Apr 12:09
2548cfb

Choose a tag to compare

Installation

quarto add mcanouil/quarto-code-window@1.1.2

Changelog

Bug Fixes

  • fix: use CSS Canvas system colour so code-window chrome and body render against the page background, not a parent container's background.

What's Changed

  • fix: use CSS Canvas system colour for code-window background by @mcanouil in #26
  • ci: bump version for release 🚀 by @mcanouil-dev[bot] in #27

Full Changelog: 1.1.1...1.1.2

CODE WINDOW 1.1.1

13 Apr 14:59
85feb3b

Choose a tag to compare

Installation

quarto add mcanouil/quarto-code-window@1.1.1

Changelog

Bug Fixes

  • fix: apply Typst code-window styling to code blocks inside lists, blockquotes, and definition lists.

What's Changed

  • fix: apply Typst code-window styling inside container blocks by @mcanouil in #24
  • ci: bump version for release 🚀 by @mcanouil-dev[bot] in #25

Full Changelog: 1.1.0...1.1.1

CODE WINDOW 1.1.0

12 Apr 18:19
5c703f8

Choose a tag to compare

Installation

quarto add mcanouil/quarto-code-window@1.1.0

Changelog

Bug Fixes

  • fix: preserve code-annotation structure for HTML/Reveal.js auto-filename blocks.

What's Changed

  • fix: preserve code-annotation structure for HTML/Reveal.js auto-filename blocks by @mcanouil in #22
  • ci: bump version for release 🚀 by @mcanouil-dev[bot] in #23

Full Changelog: 1.0.1...1.1.0

CODE WINDOW 1.0.1

10 Apr 14:31
0050503

Choose a tag to compare

Installation

quarto add mcanouil/quarto-code-window@1.0.1

Changelog

Bug Fixes

  • fix: reduce Reveal.js code-window title bar height by 35% so it is proportional to slide content.

What's Changed

  • ci: update release workflow to use centralised reusable workflow by @mcanouil in #18
  • style: reduce Reveal.js title bar height by 35% by @mcanouil in #19
  • ci: bump version for release 🚀 by @mcanouil-dev[bot] in #21

Full Changelog: 1.0.0...1.0.1

CODE WINDOW 1.0.0

29 Mar 16:16
925be81

Choose a tag to compare

Installation

quarto add mcanouil/quarto-code-window@1.0.0

Changelog

New Features

  • feat: derive Typst window chrome colours from page background for dark theme support.

What's Changed

  • docs: document all extension options and block-level attributes by @mcanouil in #15
  • feat: derive Typst window chrome colours from page background by @mcanouil in #16
  • ci: bump version for release 🚀 by @mcanouil-dev[bot] in #17

Full Changelog: 0.4.0...1.0.0

CODE WINDOW 0.4.0

29 Mar 14:43
372962e

Choose a tag to compare

Installation

quarto add mcanouil/quarto-code-window@0.4.0

Changelog

Bug Fixes

  • fix: unwrap Quarto's DecoratedCodeBlock Div to prevent double filename wrapping in Typst output.
  • fix: evaluate theorem/example title strings as Typst markup so inline code renders correctly instead of being stringified.
  • fix: normalise code blocks with no or unknown language class to default for consistent styling across all formats.
  • fix: default to # comment symbol for unknown code block languages (default, txt, etc.) in annotation detection.
  • fix: support code annotations with syntax-highlighting: idiomatic (native Typst highlighting) via a show raw.line rule.

New Features

  • feat: replace global hotfix.quarto-version with per-hotfix thresholds for independent auto-disable.

Refactoring

  • refactor: extract language normalisation into dedicated _modules/language.lua module.

What's Changed

  • fix: support code annotations for unknown languages and idiomatic highlighting by @mcanouil in #10
  • fix: normalise code blocks with no or unknown language class by @mcanouil in #11
  • fix: unwrap DecoratedCodeBlock Div to prevent double filename wrapping by @mcanouil in #12
  • fix: evaluate theorem title strings as Typst markup by @mcanouil in #13
  • ci: bump version for release 🚀 by @mcanouil-dev[bot] in #14

Full Changelog: 0.3.0...0.4.0