Releases: mcanouil/quarto-code-window
Releases · mcanouil/quarto-code-window
CODE WINDOW 1.2.0
Installation
quarto add mcanouil/quarto-code-window@1.2.0Changelog
New Features
- feat: render a highlighted-lines chip alongside the filename in the code-window title bar (HTML, Reveal.js, and Typst).
Uses Quarto'scode-line-numbersattribute or a newcode-window-linesattribute.
The chip can be disabled globally vialines-label: false. - feat: collapsible code windows via a
<details>wrapper (HTML/Reveal.js).
Per-block opt-in with thecode-window-collapseattribute (true/false/open/closed) or document-wide via thecollapseoption. - 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-numbersintegration, the newcollapseoption, 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
Installation
quarto add mcanouil/quarto-code-window@1.1.5Changelog
Bug Fixes
- fix: propagate
#| filename:chunk option into the code-window wrapper for HTML and Typst output. Previously, using#| filename:(instead of thefilename=Pandoc attribute) caused a double.code-with-filenamewrapper 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
Installation
quarto add mcanouil/quarto-code-window@1.1.4Changelog
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
Installation
quarto add mcanouil/quarto-code-window@1.1.3Changelog
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
Installation
quarto add mcanouil/quarto-code-window@1.1.2Changelog
Bug Fixes
- fix: use CSS
Canvassystem 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
Installation
quarto add mcanouil/quarto-code-window@1.1.1Changelog
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
Installation
quarto add mcanouil/quarto-code-window@1.1.0Changelog
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
Installation
quarto add mcanouil/quarto-code-window@1.0.1Changelog
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
Installation
quarto add mcanouil/quarto-code-window@1.0.0Changelog
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
Installation
quarto add mcanouil/quarto-code-window@0.4.0Changelog
Bug Fixes
- fix: unwrap Quarto's
DecoratedCodeBlockDiv 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
defaultfor 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 ashow raw.linerule.
New Features
- feat: replace global
hotfix.quarto-versionwith per-hotfix thresholds for independent auto-disable.
Refactoring
- refactor: extract language normalisation into dedicated
_modules/language.luamodule.
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