Skip to content

feat: add highlighted-lines chip, collapsible windows, icon CSS variables#33

Open
mcanouil wants to merge 3 commits into
mainfrom
feat/highlight-lines-window-icons-collapsible
Open

feat: add highlighted-lines chip, collapsible windows, icon CSS variables#33
mcanouil wants to merge 3 commits into
mainfrom
feat/highlight-lines-window-icons-collapsible

Conversation

@mcanouil
Copy link
Copy Markdown
Owner

@mcanouil mcanouil commented May 28, 2026

  • Render Quarto's code-line-numbers spec (or a new code-window-lines attribute) as a chip beside the filename in the code-window title bar across HTML, Reveal.js, and Typst.
    Toggled globally via the new lines-label option (default true).
  • Wrap code windows in a <details> element on HTML and Reveal.js when the new code-window-collapse attribute is set per block, or document-wide via the new collapse option (true/false/open/closed).
    The title bar becomes the <summary> so existing CSS continues to work.
  • Expose CSS custom properties (--code-window-macos-icon, --code-window-windows-icon, matching icon-width variables, and a shared icon-height variable) so users can override the macOS/Windows window-button SVGs from their own stylesheet.
  • Refactor: synchronise shared modules (html, logging, metadata, pandoc-helpers, string) with the canonical versions in creating-quarto-extension/assets/modules.
  • Documentation: README and example.qmd cover the new chip, collapsible windows, and CSS-variable overrides.

mcanouil added 2 commits May 28, 2026 23:02
Update @module annotation style (bare name to quoted name) across html,
logging, metadata, pandoc-helpers, and string modules to match the
canonical versions in creating-quarto-extension/assets/modules.
…bles

Render Quarto's code-line-numbers spec (or a new code-window-lines
attribute) as a chip beside the filename in the code-window title bar,
across HTML, Reveal.js, and Typst. The chip is toggled globally via the
lines-label option.

Wrap code windows in a <details> element on HTML and Reveal.js when the
new code-window-collapse attribute is set on a block, or document-wide
via the collapse option. The title bar becomes the <summary>.

Expose --code-window-macos-icon, --code-window-windows-icon, matching
icon width variables, and a shared icon height variable, so users can
override the window-button SVGs from their own stylesheet without
forking the extension.

Update example.qmd, README, schema, and CHANGELOG accordingly.
@mcanouil mcanouil self-assigned this May 28, 2026
@mcanouil mcanouil added the Type: Enhancement 💡 Issues related to enhancements, improvements, new features, or new analyses label May 28, 2026
Extract resolve_collapse helper shared by the per-block attribute reader
and the document-level option parser. Collapse the redundant branch in
read_block_lines_label that re-cleared an already-handled attribute.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Enhancement 💡 Issues related to enhancements, improvements, new features, or new analyses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant