Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Bug Fixes

- fix: Centre the text of the highlighted-lines chip vertically in browsers that support `text-box`. (#86)

## 1.8.1 (2026-11-05)

### Bug Fixes
Expand Down
10 changes: 10 additions & 0 deletions _extensions/code-window/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ body.quarto-dark .code-with-filename .code-with-filename-file {
overflow-wrap: break-word;
}

/* The line box keeps room for descenders that a label such as "L1-3" does not
* have. Trim it to the cap height and the baseline, so the padding alone sets
* the space above and below the text. */
@supports (text-box: trim-both cap alphabetic) {
.code-with-filename .code-with-filename-file .code-with-filename-lines {
padding-block: 0.3em;
text-box: trim-both cap alphabetic;
}
}

/* Code block content area */
.code-with-filename .sourceCode,
.code-with-filename div.sourceCode,
Expand Down