Skip to content

Releases: mcanouil/quarto-code-window

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

CODE WINDOW 0.3.0

23 Mar 23:17
6d2550f

Choose a tag to compare

Installation

quarto add mcanouil/quarto-code-window@0.3.0

Changelog

New Features

  • feat: add multiple window decoration styles for code blocks (macos, windows, default).
  • feat: add Typst code-annotations hot-fix with annotation markers, circled numbers, and bidirectional linking.
  • feat: add hotfix.quarto-version threshold to auto-disable temporary hot-fixes when Quarto reaches a specified version.

Bug Fixes

  • fix: HTML-escape auto-generated filename in code block headers to prevent XSS.
  • fix: skylighting hot-fix now respects custom wrapper name instead of hardcoding code-window-circled-number.

Style

  • style: adjust padding and height for title bar in code window.

Refactoring

  • refactor: consolidate skylighting-fix option into nested hotfix configuration key with code-annotations and skylighting toggles.
  • refactor: introduce main.lua entry point for filter assembly and dependency wiring.
  • refactor: move hotfix modules (code-annotations.lua, skylighting-typst-fix.lua) into _modules/hotfix/.
  • refactor: split Typst function definitions so annotation helpers are only injected when at least one hot-fix is active.
  • refactor: update Typst processing to return block sandwich.
  • refactor: use utility functions for code-window extension.
  • 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 #5
  • fix: update project path resolution to use pandoc.path.join by @mcanouil in #6
  • refactor: consolidate hotfix options under nested key by @mcanouil in #7
  • refactor: replace monolithic utils.lua with focused modules by @mcanouil in #8
  • ci: bump version for release 🚀 by @mcanouil-dev[bot] in #9

New Contributors

Full Changelog: 0.2.0...0.3.0