quarto-dev / quarto-dev/quarto-cli

revealjs navigation with vertical slides: fragment / code-line-number stepping is also triggered by horizontal navigation

Open
#9,464 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug revealjs
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Bug description

When using vertical slides in revealjs combined with code-line-numbers horizontal navigation requires to step through the entire code-line-numbers before the next horizontal slide is shown.

Steps to reproduce

Use following test.qmd:

---
format:
  revealjs:
    navigation-mode: vertical
    controls: true
    toc: true
    toc-depth: 1
---

# horizontal 1

## vertical 1-1

```{.python code-line-numbers="1|2"}
a
b
```

# horizontal 2

## vertical 2-1

a

::: {.fragment .fade-in}
c
:::

# horizontal 3

Expected behavior

code-line-numbers / fragments are ignored when vertical slides are present and one tries to jump to the next horizontal slide.

Actual behavior

Before the next horizontal slide is shown one has to step through all fragments on the current slide.

Your environment
  • VSCode (latest) on MacOS using a devcontainer
  • devcontainer running debian bookworm
Quarto check output
# quarto check
Quarto 1.4.553
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.11: OK
      Dart Sass version 1.69.5: OK
      Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.4.553
      Path: /opt/quarto/bin

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

[✓] Checking LaTeX....................OK
      Using: TinyTex
      Path: /root/.TinyTeX/bin/x86_64-linux
      Version: 2024

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

[✓] Checking Python 3 installation....OK
      Version: 3.12.3 (Conda)
      Path: /opt/conda/bin/python
      Jupyter: 5.7.2
      Kernels: python3

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

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/

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.

Research direction

Start by reproducing the behavior with test.qmd using the shown revealjs configuration; the Quarto check output provides the environment context. Inspect the vertical navigation and fragment/code-line-number stepping behavior. Done means horizontal navigation reaches the next horizontal slide without stepping through fragments or code lines on the current slide.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.