Releases: mcanouil/quarto-code-window
Releases · mcanouil/quarto-code-window
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
CODE WINDOW 0.3.0
Installation
quarto add mcanouil/quarto-code-window@0.3.0Changelog
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-versionthreshold 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
wrappername instead of hardcodingcode-window-circled-number.
Style
- style: adjust padding and height for title bar in code window.
Refactoring
- refactor: consolidate
skylighting-fixoption into nestedhotfixconfiguration key withcode-annotationsandskylightingtoggles. - refactor: introduce
main.luaentry 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.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 #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