quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.92k stars 324 forks source link

Reveal JS code annotation broken when `scrollable: true` #5339

Closed jarbet closed 11 months ago

jarbet commented 1 year ago

Bug description

Attached is my example .qmd file: test.qmd.zip

Problem:

image

RStudio IDE version:

image

OS:

image

quarto check

[✓] Checking Quarto installation......OK
      Version: 1.2.335
      Path: /Applications/RStudio.app/Contents/Resources/app/quarto/bin

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

[✓] Checking Python 3 installation....OK
      Version: 3.9.12 (Conda)
      Path: /Users/jarbet/opt/anaconda3/bin/python
      Jupyter: 4.9.2
      Kernels: python3

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

[✓] Checking R installation...........OK
      Version: 4.2.1
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Library/Frameworks/R.framework/Versions/4.2/Resources/library
      rmarkdown: 2.14

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

quarto check
(base) RELMJCCADM27261:group-statistics jarbet$ 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.340
      Path: /Applications/quarto/bin

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

[✓] Checking Python 3 installation....OK
      Version: 3.9.12 (Conda)
      Path: /Users/jarbet/opt/anaconda3/bin/python
      Jupyter: 4.9.2
      Kernels: python3

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

[✓] Checking R installation...........OK
      Version: 4.2.1
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Library/Frameworks/R.framework/Versions/4.2/Resources/library
      knitr: 1.41
      rmarkdown: 2.14

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

Checklist

cscheid commented 1 year ago

Can you first check with a new quarto version? https://quarto.org/docs/get-started/

jarbet commented 1 year ago

Can you first check with a new quarto version? https://quarto.org/docs/get-started/

Still having the same issue:

image

New 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.340
      Path: /Applications/quarto/bin

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

[✓] Checking Python 3 installation....OK
      Version: 3.9.12 (Conda)
      Path: /Users/jarbet/opt/anaconda3/bin/python
      Jupyter: 4.9.2
      Kernels: python3

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

[✓] Checking R installation...........OK
      Version: 4.2.1
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Library/Frameworks/R.framework/Versions/4.2/Resources/library
      knitr: 1.41
      rmarkdown: 2.14

[✓] Checking Knitr engine render......OK
cscheid commented 1 year ago

Ok, thanks!

I can reproduce this locally. To make it easier, the contents of that .qmd file are here:

---
title: "test"
format: revealjs
scrollable: TRUE
code-annotations: hover
---

## Nearest neighbor caliper matching

```{r, echo = TRUE, eval = FALSE}
#| code-line-numbers: "1,3,7,8,10,11"
library(MatchIt);

set.seed(1234);
match.nnc.logit <- matchit( # <1>
    treat ~.,
    data = psdata,
    method = 'nearest',
    distance = 'glm',
    replace = FALSE,
    caliper = 0.2,
    std.caliper = TRUE,
    ratio = 1 # 1:1 matching
    );
  1. Stuart, Elizabeth A., et al. "MatchIt: nonparametric preprocessing for parametric causal inference." Journal of statistical software (2011)