-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Fix callout block CSS classes #574
Conversation
Pretty sure this is failing due to R 4.3.3 / unstable... Edit: seems to be confirmed when looking at a previous failing PR where the latest release Ubuntu tests passed with 4.3.2 https://github.com/carpentries/sandpaper/actions/runs/7834017066/job/21376323560?pr=572 compared with 4.3.3 failing here. |
I'm sorry to say that this doesn't seem to have fixed the problem on my local system @froggleston Session output copied below. My Pandoc version is 3.1.6
|
Can you double check your sandpaper version @tobyhodges ? My local build seems to work:
session_info()─ Session info ───────────────────────────────────────────
setting value
version R version 4.3.2 (2023-10-31)
os Ubuntu 20.04.6 LTS
system x86_64, linux-gnu
ui X11
language (EN)
collate C.UTF-8
ctype C.UTF-8
tz Europe/London
date 2024-03-01
pandoc 3.1.11 @ /home/froggleston/.local/share/r-pandoc/3.1.11/ (via rmarkdown)
─ Packages ────────────────────────────────────────────
package * version date (UTC) lib source
assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.3.0)
cachem 1.0.8 2023-05-01 [1] CRAN (R 4.3.0)
callr 3.7.5 2024-02-19 [1] CRAN (R 4.3.0)
cli 3.6.2 2023-12-11 [1] RSPM (R 4.3.0)
curl 5.2.0 2023-12-08 [1] RSPM (R 4.3.0)
desc 1.4.3 2023-12-10 [1] RSPM (R 4.3.0)
devtools * 2.4.5.9000 2023-06-23 [1] Github (r-lib/devtools@69d6104)
digest 0.6.34 2024-01-11 [1] RSPM (R 4.3.0)
ellipsis 0.3.2 2021-04-29 [1] CRAN (R 4.3.0)
evaluate 0.23 2023-11-01 [1] RSPM (R 4.3.0)
fansi 1.0.6 2023-12-08 [1] RSPM (R 4.3.0)
fastmap 1.1.1 2023-02-24 [1] CRAN (R 4.3.0)
fs 1.6.3 2023-07-20 [1] RSPM (R 4.3.0)
glue 1.7.0 2024-01-09 [1] RSPM (R 4.3.0)
htmltools 0.5.7 2023-11-03 [1] RSPM (R 4.3.0)
htmlwidgets 1.6.4 2023-12-06 [1] RSPM (R 4.3.0)
httpuv 1.6.14 2024-01-26 [1] RSPM (R 4.3.0)
knitr 1.45 2023-10-30 [1] RSPM (R 4.3.0)
later 1.3.2 2023-12-06 [1] RSPM (R 4.3.0)
lifecycle 1.0.4 2023-11-07 [1] RSPM (R 4.3.0)
magrittr 2.0.3 2022-03-30 [1] CRAN (R 4.3.0)
memoise 2.0.1 2021-11-26 [1] CRAN (R 4.3.0)
mime 0.12 2021-09-28 [1] CRAN (R 4.3.0)
miniUI 0.1.1.1 2018-05-18 [1] CRAN (R 4.3.0)
pandoc 0.2.0 2023-08-24 [1] RSPM (R 4.3.0)
pillar 1.9.0 2023-03-22 [1] CRAN (R 4.3.0)
pkgbuild 1.4.3 2023-12-10 [1] RSPM (R 4.3.0)
pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.3.0)
pkgload 1.3.4 2024-01-16 [1] RSPM (R 4.3.0)
processx 3.8.3 2023-12-10 [1] RSPM (R 4.3.0)
profvis 0.3.8 2023-05-02 [1] CRAN (R 4.3.0)
promises 1.2.1 2023-08-10 [1] RSPM (R 4.3.0)
ps 1.7.6 2024-01-18 [1] RSPM (R 4.3.0)
purrr 1.0.2 2023-08-10 [1] CRAN (R 4.3.0)
R6 2.5.1 2021-08-19 [1] CRAN (R 4.3.0)
rappdirs 0.3.3 2021-01-31 [1] CRAN (R 4.3.0)
Rcpp 1.0.12 2024-01-09 [1] RSPM (R 4.3.0)
remotes 2.4.2.1 2023-07-18 [1] RSPM (R 4.3.0)
rlang 1.1.3 2024-01-10 [1] RSPM (R 4.3.0)
rmarkdown 2.25 2023-09-18 [1] RSPM (R 4.3.0)
sandpaper * 0.16.2 2024-03-01 [1] Github (carpentries/sandpaper@8092d03)
sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.3.0)
shiny 1.8.0 2023-11-17 [1] RSPM (R 4.3.0)
stringi 1.8.3 2023-12-11 [1] RSPM (R 4.3.0)
stringr 1.5.1 2023-11-14 [1] RSPM (R 4.3.0)
tibble 3.2.1 2023-03-20 [1] CRAN (R 4.3.0)
urlchecker 1.0.1 2021-11-30 [1] CRAN (R 4.3.0)
usethis * 2.2.3 2024-02-19 [1] CRAN (R 4.3.0)
utf8 1.2.4 2023-10-22 [1] RSPM (R 4.3.0)
varnish * 1.0.1 2024-03-01 [1] Github (carpentries/varnish@3079f59)
vctrs 0.6.5 2023-12-01 [1] RSPM (R 4.3.0)
withr 3.0.0 2024-01-16 [1] RSPM (R 4.3.0)
xfun 0.42 2024-02-08 [1] RSPM (R 4.3.0)
xtable 1.8-4 2019-04-21 [1] CRAN (R 4.3.0) |
I have deployed this fix on our internal fork and it seems to be working perfectly! Thanks! https://epiverse-trace.github.io/tutorials-late/ BeforeNow |
Awesome - I'll get these PRs merged and a hotfix release pushed out today or tomorrow! Thanks again for the help and testing! |
This still fails due to the r-hub resolver resolving the Windows 3.6.3 release to an incorrect URL (it should redirect to the CRAN archive, but doesn't). |
I'm still seeing the problem throughout the instructor training as rendered, even after refreshing the page. Do we need to do something on Git to force the site to rebuild and resolve this? And if so, do we need to send something out to maintainers on all lessons to ensure it's implemented? Apologies if I'm missing something obvious about sandpaper and the update. I readily admit that though I write and teach a lot of code, my skills are very hacky and as-needed. |
This PR addresses #470 and carpentries/workbench#81.
pandoc2 does not exhibit this behaviour, whereas pandoc3 does.
The
fix_callouts
function now checks for both divs with specific callout types (discussion
,challenge
, etc) as well as single classcallout
types (which represents all basic callouts that are not one of these specific types).pandoc 2.19:
pandoc 3.1.11: