Closed adamvi closed 2 years ago
I guess this is a pandoc version problem. Our example page https://pagedown.rbind.io is built with Pandoc 2.14.2. I just tried Pandoc 2.17.1.1, and the LOT/LOF couldn't be generated. @cderv @RLesur Could you take a look? Thanks!
This come indeed from Pandoc version. Last one working is 2.16.2 so change happens on 2.17. I'll have a look and see if we can add some test to detect that earlier.
Ok I think I have found the culprit in 2.17 release note.
Functions of name Doc are no longer accepted as alternatives for Pandoc filter functions. This functionality was undocumented.
It seems we were using an undocumented feature in our Lua filter. I'll rewrite this.
@adamvi Open PR should fix this is you are in a hurry
remotes::install_github("rstudio/pagedown")
It should be merged soon though.
I am scheduled to present this work with a demonstration on how to create
pagedown
reports at a large conference for education researchers next month (!) so I'm hoping to get this worked out ASAP so that I can (re)present it thoroughly and with confidence...
@adamvi If the current dev version works for you, we can make a new CRAN release soon. Thanks for presenting this package at the conference!
Hello and, like many others, I am so grateful for and indebted to your efforts on the development of this package!
I am no longer able to produce a list of figures/tables in reports that had
render
ed/chrome_print
ed well previously (Dec 2021). I am scheduled to present this work with a demonstration on how to createpagedown
reports at a large conference for education researchers next month (!) so I'm hoping to get this worked out ASAP so that I can (re)present it thoroughly and with confidence...I munged around for over a day in code and compared HTML, knit.md, etc results with previous versions, and eventually came to the conclusion that the issue is in the
pagedown
package somewhere (or perhaps due to recent changes inpandoc
?) and not with anything I've done.I was able to replicate this issue using the skeleton.Rmd file in the latest dev version of the package:
I ran this code with the skeleton.Rmd "out-of-the-box" and with several different changes in the YAML trying to get the
lof
and/orlot
options to work based on what had worked for me as well as in your documentation. For example:Some things I've tried with the example and my report:
lof
,lot
,lof-title
inclusion, exclusion and placement within the YAMLloft.lua
and some of the relevant JavaScript files.pagedown
- e.g.,remotes::install_version("pagedown", version = "0.16", type="source")
remotes::install_github('rstudio/pagedown')
I have NO experience with LUA and no idea how to debug any potential issues, which is why I'm referring this issue to you 😃
Thank you in advance for advice/package changes!
Pandoc version (used in
rmarkdown
):Session Info: