Skip to content

Commit f32ca0b causes markdowncv themes to break? #261

@monicathieu

Description

@monicathieu

I updated vitae to 0.6.0 because I was excited to try Colton Baumler's new ccbaumler theme for the markdowncv format. However, my previously rendering CV (using the davewhipp theme) suddenly started to render to a "plain" R Markdown and the theming fails to apply! I haven't changed anything on my CV Rmd.

Also, the following pandoc warnings are now showing up on the Render tab:

[WARNING] Could not fetch resource media/../fonts/academicons.ttf
[WARNING] Could not fetch resource media/davewhippbootstrap-screen.css
[WARNING] Could not fetch resource media/davewhippbootstrap-print.css

This suggests pandoc is failing to find the theme CSS paths, but I sadly don't don't know enough about how vitae calls knitr and pandoc under the hood to know what exactly the issue is.

I have narrowed it down to something in commit f32ca0b, which definitely suggests it's a knitr-to-pandoc issue of some sort. The theme appears correctly when I reinstall vitae on the previous commit (no changes to the Rmd file or anything else).

Annoyingly, the previous commit has that duplication issue the offending commit fixes. I saw some comments in #254 suggesting the duplication was arising from a knitr update, but I checked through several package versions and I actually think it came from the xfun 0.44 update--maybe because xfun::write_utf8() now returns con, not NULL? I did confirm that the theme-less CV knitted after commit f32ca0b does not duplicate the CV contents.

Relevant version info:

R 4.3.1
pandoc 3.1.11
knitr 1.47 (but this issue also happens with 1.43)
rmarkdown 2.25

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions