pagedown
pagedown copied to clipboard
`chrome_print()` hangs when printing html with maths produced by Quarto
Hi,
I've been having issues using chrome_print()
to produce a pdf from html that I have made from a Quarto document. Digging deeper I have found that it's due to the presence of maths symbols. I am not sure where in the document pipeline the failure is occurring, as the same document renders when using RMarkdown instead of Quarto.
Here's a minimal example of what I'm doing:
Quarto doc:
---
title: "test"
format:
html
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
This is a test with some inline maths. $x$ is a cool variable.
Rendering this to produce 'test.html' I am then experiencing the failure (where chrome_print()
hangs indefinitely) when running:
chrome_print(
"test.html",
output = "test.pdf",
)
I get the following errors:
Error in force(expr) : Failed to generate output in 30 seconds (timeout).
[2023-10-24 15:03:05] [error] handle_read_frame error: asio.system:10054 (An existing connection was forcibly closed by the remote host.)
Any advice or ideas of things I could check would be appreciated!
Session info:
> sessionInfo()
R version 4.2.3 (2023-03-15 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.utf8 LC_CTYPE=C LC_MONETARY=English_United Kingdom.utf8
[4] LC_NUMERIC=C LC_TIME=English_United Kingdom.utf8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_1.0.11 pak_0.4.0 ps_1.7.5 later_1.3.1 digest_0.6.33 mime_0.12 R6_2.5.1
[8] jsonlite_1.8.7 magrittr_2.0.3 evaluate_0.22 rlang_1.1.1 cli_3.6.1 promises_1.2.0.1 rstudioapi_0.15.0
[15] rmarkdown_2.23 tools_4.2.3 servr_0.24 processx_3.8.2 httpuv_1.6.5 xfun_0.39 yaml_2.3.7
[22] fastmap_1.1.1 compiler_4.2.3 htmltools_0.5.6.1 websocket_1.4.1 pagedown_0.20 knitr_1.44