-
-
Notifications
You must be signed in to change notification settings - Fork 979
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
Brand icons like fa-github no longer work with rmarkdown 2.6 #1991
Comments
Hi @jdblischak, Fontawesome 5 upgrade was incomplete and there was an old issue (#1554) that we tried to fix in #1967. It seems we forgot the NEWS bullet 😞 We followed the new fontawesome doc to use
I have a closer look into how better support both version for old configuration to. I am just puzzled to see that Upgrading dependencies is always tricky. |
@jdblischak the PR should fix this. Thanks a lot for your reproducible example, that helped a lot for testing !! |
@cderv Thanks for the quick fix! I confirmed that your PR fixes the Issue, and nicely supports both Font Awesome 4 and 5.
|
Going forward, how would you recommend I have workflowr insert the favicon? It currently uses |
Fontawesome 5 and later will indeed use If you were to insert the icons yourself in body and not in navbar you would have to use the all prefix + name. Only But both way will work - do as you see fit! :) |
Good point. I'll add a version check. If rmarkdown is >= 2.6, I'll add |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
By filing an issue to this repo, I promise that
xfun::session_info('rmarkdown')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/rmarkdown')
.I understand that my issue may be closed if I don't fulfill my promises.
What is the plan for supporting Font Awesome 4? The "brand" icons stopped working with the recently released rmarkdown 2.6, but I didn't see anything in the release notes that support for Font Awesome 4 was dropped.
Background
The rmarkdown book chapter 10.5.4 instructs you to insert Font Awesome favicons in the navigation bar of an R Markdown website using only the icon name, e.g.
fa-home
,fa-info
,fa-gear
, etc. While support for Font Awesome 5 was added in rmarkdown 1.10, rmarkdown continued to support the syntax for brand icons for Font Awesome 4 as of rmarkdown 2.5.My package workflowr inserts the GitHub icon,
fa-github
, which no longer works. I can bump the minimal rmarkdown version required to 1.10 and switch to having the package instead insertfab fa-github
. This will work fine for future websites created with workflowr. However, any existing site that gets updated with rmarkdown 2.6 will lose the icon. Thus if possible, it would be convenient if support for Font Awesome 4 "brand" icons could be reinstated. See workflowr/workflowr#231.Reproducible example
Below is a reproducible example:
When I run it with rmarkdown 2.5, all the icons render.
When I run it with rmarkdown 2.6 from CRAN (or the GitHub version), specifying
fa-github
doesn't work.Instead of inserting
fa
in front offa-github
, it now insertsfas
, which only works for solid icons likefa-home
, and not brand icons likefa-github
.Session information
The text was updated successfully, but these errors were encountered: