Giscus repo value ingested before variable resolution #11782
Labels
bug
Something isn't working
shortcodes
issues related to shortcodes
triaged-to
Issues that were not self-assigned, signals that an issue was assigned to someone.
Bug description
Giscus widget displays "An error occurred: giscus is not installed on this repository" when the
repo
YAML key is supplied with a quarto variable.Inspecting the Giscus iframe reveals the
src
ishttps://giscus.app/en/widget?origin=http%3A%2F%2Flocalhost%3A5093%2F&session=&theme=light&reactionsEnabled=1&emitMetadata=0&inputPosition=top&repo=%7B%7B%26lt%3B+var+repo_name+%26gt%3B%7D%7D&repoId=&category=General&categoryId=&strict=0&description=&backLink=http%3A%2F%2Flocalhost%3A5093%2F&term=index
Of note is
%7B%7B%26lt%3B+var+repo_name+%26gt%3B%7D%7D
, which indicates that Giscus is passed therepo
value before Quarto resolves the variable.I consider this a bug because in other instances, (e.g. hrefs), variable-containing strings in
_quarto.yml
are properly resolved.Steps to reproduce
_quarto.yml
:index.qmd
:_variables.yml
:Then run
quarto preview
.Expected behavior
Variable resolves and the widget renders.
Actual behavior
Variable reference is treated literally and the widget receives the wrong
src
.Your environment
No response
Quarto check output
The text was updated successfully, but these errors were encountered: