Skip to content

Revealjs preview refresh is one slide off if there is no title #10454

Description

@memeplex

Bug description

If you set a title for your slideshow, when you modify a slide and the preview refreshes it jumps to the modified slide.

But without setting a title (so no title page is generated) it jumps to the next slide instead.

Steps to reproduce

Create a file with:

---
format: revealjs
---

## Getting up

- Turn off alarm
- Get out of bed

## Going to sleep

- Get in bed
- Count sheep

Start preview of said file:

quarto preview <file> --to revealjs --no-browser --no-watch-inputs

Change the first slide.

Expected behavior

The preview refreshes and jumps to the modified slide, whether there is a title or not.

Actual behavior

Without a title, it jumps to the slide that is after the modified one.

Your environment

  • VSCode 1.92.0
  • macOS Sonoma 14.4.1

Quarto check output

Quarto 1.5.56
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.2.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.41.0: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.5.56
      Path: /Users/carlos/.venvs/base/lib/python3.12/site-packages/quarto_cli/bin

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

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /opt/homebrew/bin
      Version: undefined

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

[✓] Checking Python 3 installation....OK
      Version: 3.12.4
      Path: /Users/carlos/.venvs/base/bin/python3
      Jupyter: 5.7.2
      Kernels: python3

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

[✓] Checking R installation...........OK
      Version: 4.4.1
      Path: /opt/homebrew/Cellar/r/4.4.1/lib/R
      LibPaths:
        - /Users/carlos/.rlibs/base
        - /Users/carlos/Documents/Util
        - /opt/homebrew/lib/R/4.4/site-library
        - /opt/homebrew/Cellar/r/4.4.1/lib/R/library
      knitr: 1.45
      rmarkdown: 2.26

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-reproIssues that are blocked until reporter provides an adequate reproductionpreviewissues related to the `preview` commandrevealjsIssues with the revealjs formatstaleIssues open for 30+ days without providing a "working" reproducible example

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions