I would like to add some special fonts as part of the title/subtitle in an R markdown document but I'm getting different results depending on the quote types I'm using.
Here's a small R markdown example that shows my problem. I would like to print the twitter logo before the twitter handle as part of the R markdown subtitle.
---
title: "Untitled"
subtitle: '`r fontawesome::fa("twitter", fill = "steelblue")` @twitter handle'
author: "My Name"
date: "7/12/2018"
output: html_document
---
This is it.
If I use single quotes then I almost get the result I want. There is a newline between the logo and the twitter handle as shown below but that is fine - it could be fixed with css since the logo is set inside <svg> ... </svg>
.
However, if I use double quotes then things go haywire:
subtitle: "`r fontawesome::fa('twitter', fill = 'steelblue')` @twitter handle"
Now none of the YAML information turns up in the final html document. I'm guessing that it is related to this question on entering the current date as part of the yaml or possibly this post where the YAML inline code doesn't run but I am curious as to why the change of quote types in the YAML has such a profound impact on the rendering since the double quotes clearly work for the other YAML parameters.
I'm using rmarkdown
v1.10.