I have a shortcode `myvar` defined as "my variable" in `_variables.yml`.  This works as I would expect for the top-level index file, and in sub-headings, but not in the top-level heading for a not-top-level file, where the shortcode results in the page title being truncated to the part before the shortcode - "Before shortcode" in the example below, instead of "Before short code my variable after".

This is the text of the input `.qmd` page:

~~~
# Before shortcode {{< var myvar >}} after

Start my text.

## Sub-heading with {{< var myvar >}} inside

And some text.
~~~

If the heading starts with the short code, Quarto ignores that heading, and uses the second-level heading instead.

<https://github.com/matthew-brett/quarto-test-book>
2021-10-01T12:03:54Z
matthew-brett
closed
Any way to use shortcode in page heading?
https://github.com/quarto-dev/quarto-cli/issues/120