Skip to content

Code annotation line highlight overflow and gutter miss-alignment #13448

Closed

Description

@mcanouil

Bug description

From #13429

The code annotation line highlights overflow on the left.
There is also a misalignment in the highlight between the line and the gutter (gutter is a bit lower).

Behaviour in 1.7:

Image

Steps to reproduce

---
title: "Code annotation line highlight overflow"
format: html
code-annotations: select
---

```{.python}
# Some comment
# to avoid overlapping copy button and annotation marker
import polars as pl # <1>
```

1. This is an annotation.

Actual behavior

Image

Quarto check output

Quarto 99.9.9
[✓] Checking environment information...
      Quarto cache location: /Users/mcanouil/Library/Caches/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.6.3: OK
      Dart Sass version 1.87.0: OK
      NOTE: Deno version 2.4.5 does not strictly match 2.3.1 and strict checking is enabled. Please use 2.3.1.
      Typst version 0.13.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 99.9.9
      commit: e858bba000cc35277bdb8911d6ad86ccc74e6552
      Path: /Users/mcanouil/Projects/quarto-dev/quarto-cli/package/dist/bin

[✓] Checking tools....................OK
      TinyTeX: v2025.08.02
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: TinyTex
      Path: /Users/mcanouil/Library/TinyTeX/bin/universal-darwin
      Version: 2025

[✓] Checking Chrome Headless....................OK
      Using: Chrome found on system
      Path: /Applications/Brave Browser.app/Contents/MacOS/Brave Browser
      Source: QUARTO_CHROMIUM

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.13.2
      Path: /Users/mcanouil/Projects/quarto-dev/quarto-playground/.venv/bin/python3
      Jupyter: 5.8.1
      Kernels: julia-1.11, uv, python3

[✓] Checking Jupyter engine render....OK

(\) Checking R installation...........ℹ R version 4.5.1 (2025-06-13)
! Config '~/.Rprofile' was loaded!
[✓] Checking R installation...........OK
      Version: 4.5.1
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Users/mcanouil/Projects/quarto-dev/quarto-playground/renv/library/macos/R-4.5/aarch64-apple-darwin20
        - /Users/mcanouil/Library/Caches/org.R-project.R/R/renv/sandbox/macos/R-4.5/aarch64-apple-darwin20/4cd76b74
      knitr: 1.50
      rmarkdown: 2.29

[✓] Checking Knitr engine render......OK

Activity

  1. changed the title [-]Code annotation line highlight overflow[/-] [+]Code annotation line highlight overflow and gutter miss-alignment[/+] on Sep 26, 2025
  2. modified the milestones: v1.9, v1.10 on Feb 13, 2026
  3. modified the milestones: v1.10, v1.11 on Jul 30, 2026
  4. self-assigned this
    on Oct 23, 2026
  5. added a commit that references this issue on Oct 28, 2026
    364ee3b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions