Home > database >  Referencing color as named vector in Inline CSS in Quarto
Referencing color as named vector in Inline CSS in Quarto

Time:12-24

I am playing around with Quarto and really like it. One feature is to change the color of inline text with the following below syntax (the word chemical will show up in red color)

[chemical]{style="color: red"}

My question is how to change the color of the text if we assign a color to name rather than the color code or built in color code? The below will not work

var="#28A569"
[chemical]{style="color: var"}

CodePudding user response:

Not sure whether Quarto offers a more straightforward approach. But one option would be to use some inline code or following the enter image description here

CodePudding user response:

An easy option would be to do this using enter image description here


  • Related