Skip to content

In revealjs: true, code-line-numbers: "1" doesn't work #13316

@mine-cetinkaya-rundel

Description

@mine-cetinkaya-rundel

I have:

  • searched the issue tracker for similar issues
  • installed the latest version of Quarto CLI
  • formatted my issue following the Bug Reports guide

Bug description

code-line-numbers: "1" doesn't work in format: revealjs.

Steps to reproduce

---
format: revealjs
execute: 
  echo: true
---

- Doesn't highlight line 1 -- doesn't work:

```{r}
#| code-line-numbers: "1"
mean(
  c(1,2,3,4,5)
)
```

- Highlights line 2 -- works:

```{r}
#| code-line-numbers: "2"
mean(
  c(1,2,3,4,5)
)
```

- Highlights line 1 on next fragment -- works:

```{r}
#| code-line-numbers: "|1"
mean(
  c(1,2,3,4,5)
)
```

Actual behavior

No response

Expected behavior

No response

Your environment

  • IDE: Positron Version: 2025.08.0 build 130
  • OS: 15.6.1 (24G90)

Quarto check output

Quarto 1.8.21
[✓] Checking environment information...
      Quarto cache location: /Users/mine/Library/Caches/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.6.3: OK
      Dart Sass version 1.87.0: OK
      Deno version 2.3.1: OK
      Typst version 0.13.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.8.21
      Path: /Applications/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (external install)
      Chromium: (not installed)

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

[✓] Checking Chrome Headless....................OK
      Using: Chrome found on system
      Path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
      Source: MacOS known location

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

[✓] Checking Python 3 installation....OK
      Version: 3.13.7
      Path: /opt/homebrew/opt/[email protected]/bin/python3.13
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
      Version: 4.5.1
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library
      knitr: 1.50
      rmarkdown: 2.29

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcode-blocksrevealjsIssues with the revealjs format

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions