Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiline caption failure #5461

Closed
5 tasks done
matthew-brett opened this issue May 9, 2023 · 2 comments
Closed
5 tasks done

multiline caption failure #5461

matthew-brett opened this issue May 9, 2023 · 2 comments
Assignees
Labels
backport bug Something isn't working pandoc-lua Issues with our Lua helper functions, filters, etc. in Pandoc
Milestone

Comments

@matthew-brett
Copy link

Bug description

To reproduce:

git clone https://github.com/matthew-brett/test-quarto-2
cd test-quarto-2
quarto render

This gives error:

Error running filter /Users/mb312/dev_trees/quarto-cli/src/resources/filters/main.lua:
...ees/quarto-cli/src/resources/filters/./common/tables.lua:107: attempt to call a nil value (method 'clone')
...

The page generating the error consists only of:

```{r}
kableExtra::kable(cars,
            caption = 'Caption
            {#tbl-veh-numbers}')
```

The error requires the caption to run over more than one line, and to contain the table label.

New issue opened as requested from: #5392

This is on macOS 13.3.1 on M2.

$ quarto check

[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.2: OK
      Dart Sass version 1.55.0: OK
      Deno version 1.33.1: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 99.9.9
      Path: /Users/mb312/dev_trees/quarto-cli/package/dist/bin

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

[✓] Checking Python 3 installation....OK
      Version: 3.10.11
      Path: /Users/mb312/.virtualenvs/resampling-with/bin/python3
      Jupyter: 5.3.0
      Kernels: python3, ir

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

[✓] Checking R installation...........OK
      Version: 4.3.0
      Path: /opt/homebrew/Cellar/r/4.3.0_1/lib/R
      LibPaths:
        - /Users/mb312/Library/R/arm64/4.3/library
        - /opt/homebrew/lib/R/4.3/site-library
        - /opt/homebrew/Cellar/r/4.3.0_1/lib/R/library
      knitr: 1.42
      rmarkdown: 2.21

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

Checklist

  • Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.
  • Please provide the output of quarto check so we know which version of quarto and its dependencies you're running.
@matthew-brett matthew-brett added the bug Something isn't working label May 9, 2023
@cderv cderv added triaged-to Issues that were not self-assigned, signals that an issue was assigned to someone. pandoc-lua Issues with our Lua helper functions, filters, etc. in Pandoc labels May 9, 2023
@cscheid cscheid changed the title Panflute filter breaks with kable, multiline caption, table lable multiline caption failure May 9, 2023
@cscheid cscheid added backport and removed triaged-to Issues that were not self-assigned, signals that an issue was assigned to someone. labels May 9, 2023
@cscheid cscheid closed this as completed in b8730e5 May 9, 2023
@cscheid
Copy link
Collaborator

cscheid commented May 9, 2023

Thanks for the report! This is now fixed on main and should be available in the next pre-release.

@dragonstyle b8730e5 is a simple fix and good backport candidate.

cscheid added a commit that referenced this issue May 9, 2023
@cscheid
Copy link
Collaborator

cscheid commented May 9, 2023

This is now cherry-picked into our v1.3 hotfixes branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport bug Something isn't working pandoc-lua Issues with our Lua helper functions, filters, etc. in Pandoc
Projects
None yet
Development

No branches or pull requests

4 participants