Open connortwiegand opened 1 month ago
FYI, there is nowhere in Quarto where icon
supports shortcodes because it's supposed to be a string giving the name of the Bootstrap icon.
If Quarto is going to support shortcodes in icon
then it should allow for any possible content such as {{< iconify simple-icons:quarto >}}
.
Regarding href
I am not sure it supports shortcodes either.
So I am going to change to enhancement as I don't think there is any bugs here.
In my view, this is really halfway between a bug and an enhancement. Technically the fix is to add support for shortcode expansion in these contexts (so an "enhancement"), but the fact that we fail to expand shortcodes in these cases is incredibly unintuitive, so a bug.
Bug description
Suppose you have an item
baz
in_variables.yml
, which contains named subitemsfoo
andbar
. If one uses the shortcode{{<var baz.foo >}}
in thelinks
subkey of anabout
page, such as:No variable substitution is performed.
This relates to #1627, #8987, and #4680.
Thank You!
Steps to reproduce
_variables.yml
, in project root:about/index.qmd
:I've tried various flavors of the above
links
key based on similar issues. I've also tried this using anabout.qmd
in the root of the project. I am not able to get variable substitution to work as expected.For completeness, here is a portion of my root
_quarto.yml
:FWIW, adding
repo-url: https://github.com/connortwiegand/
and replacing one of the link options with "{{< meta website.repo-url >}}" produces the following:Expected behavior
var
shortcodes are substituted with their values from_variables.yml
.Actual behavior
No variable substitution is performed.
Your environment
1.91.1
Quarto check output
EDIT:
Variable substitution does work inside the
text
key. But not inside theicon
orhref
keys. So this correctly injects a variable:While both of these fail: