Skip to content

revealjs: incremental: true conflicts with code-annotations #7142

@avras

Description

@avras

Bug description

I have a slide deck with a slide containing code annotations. The code itself is an XML file. But I mark the code block as python as I couldn't figure out the comment syntax which the code annotater will recognize when I mark the code block as xml.

The slides freeze at that slide. Neither the right arrow nor the "click on forward button" works.

Steps to reproduce

---
title: "Slides Freeze at Code Annotation"
author: Saravanan Vijayakumaran
format:
    revealjs:
        incremental: true
        theme: default
        controls: true
        scrollable: false
        mermaid:
          theme: default
date: October 5, 2023
date-format: long
link-external-newwindow: true
slide-number: c/t
code-annotations: hover
---

## First slide

## Right Arrow Does Not Work

``` python
<?xml version="1.0" encoding="UTF-8"?>                     # <1>
<OfflinePaperlessKyc referenceId="372520231003155749167">  # <2>
  <UidData> # <3>
    <Poi dob="DD-MM-YYYY" # <4>                                  
      e="558d55fe5740c50058...518b702521b1448a6509ccb" # <5>
      gender="M"
      m="328f6d1c0adad4ad4...cf3589b98c617aa1d45afcf2" # <6>
      name="Saravanan Vijayakumaran"
    />
    <Poa careof="S/O XXXXXXXXXXXXX XXXXXXXXX"
         country="India"
         dist="Mumbai"
         vtc="Mumbai"
    />
    <Pht> ..snip.. </Pht> # <7>
  </UidData> # <8>
</OfflinePaperlessKyc>
```

1.  XML version
2.  4 digits of Aadhaar + timestamp
3.  Start of user data
4.  `dob` is the date of birth
5.  Hash of email address
6.  Hash of phone number
7.  Photo encoded in base64 format

## Last slide

Expected behavior

The slides should progress to the slide titled "Last slide"

Actual behavior

The slide progress freezes at the slide titled "Right Arrow Does Not Work"

Your environment

  • OS: Ubuntu 22.04.3 LTS jammy
  • IDE: RStudio 2023.06.1+524
    • This bug also appears when generating the html with "quarto render" on the command line

Quarto check output

$ quarto check
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.3.450
      Path: /opt/quarto/bin

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

[✓] Checking Python 3 installation....OK
      Version: 3.10.12
      Path: /usr/bin/python3
      Jupyter: 4.9.1
      Kernels: sagemath, python3

(/) Checking Jupyter engine render....[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled
[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.1.2
      Path: /usr/lib/R
      LibPaths:
        - /home/sarva/R/x86_64-pc-linux-gnu-library/4.1
        - /usr/local/lib/R/site-library
        - /usr/lib/R/site-library
        - /usr/lib/R/library
      knitr: 1.42
      rmarkdown: 2.21

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcode-annotationrevealjsIssues with the revealjs format

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions