I need to be able to highlight all text in an r-markdown document that has been inserted using an inline code chunk. E.G r TEXT
.
This is to enable editing of the automated Word document creation.
I have tried using
.highlight {
background-color: lightpink;
border: 3px solid red;
font-weight: bold;
}
r sprintf("<span class='highlight'>%s</span>",PNAME)
AND
r text_spec(TEXT, color = "red")
However, I suspect these are not working due to the reference .docx that I am using over-riding the styles. Is there a way to still use the reference doc and have the highlighting??
Thanks in advance.
Silas