revealjs: Simple Browser preview resets to title slide on re-render (VSCode)

Open
#14,184 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
javascript, vscode

Research direction

Start by reproducing the issue with a revealjs .qmd file in VSCode, using the Simple Browser and saving after moving to a later slide. Trace the preview re-render and reload path; the fix is complete when the active slide remains selected after each save and re-render.

Written by the indexing model from the issue text.

Description

bug needs-repro preview revealjs stale
Bug description

When previewing a RevealJS presentation via the Simple Browser in VSCode, navigating away from the title slide and then saving/editing the .qmd file causes the preview to reset to slide 1 (title slide), losing the current slide position.

Steps to reproduce
  1. Open a .qmd file with format: revealjs in VSCode.
  2. Run Preview. Simple Browser opens on the title slide.
  3. Navigate forward to any slide (e.g., slide 3).
  4. Edit the .qmd file and save.
  5. Quarto re-renders, and the Simple Browser goes to slide 1.
Actual behavior

The preview reloads to slide 1 (title slide) after every re-render, regardless of which slide was active before the save.

Expected behavior

The Simple Browser should preserve the current slide position after a hot-reload/re-render, so the author remains on the slide they were editing.

Your environment
  • Vscode 1.110.1
  • MacOS: Sequioa 15.7.3
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from quarto-dev/quarto-cli

All issues in quarto-dev/quarto-cli

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.