Open aronatkins opened 3 months ago
In the case of the addition of image
, then image-alt
and image-title
should also be added.
Possibly other attributes (image-width
) as done for the about page template: https://github.com/mcanouil/quarto-cli/blob/31d5390770394d678b737bdc2d135f54f7eb9684/src/resources/projects/website/about/_image.ejs.html
FYI, markdown works in text
(at least in 1.5).
page-footer:
right:
- text: "![](/images/posit-logo-black-TM.svg){#footer-right-posit-logo width=100px}"
href: "https://posit.co"
Although, Quarto will raise a warning:
WARNING (src/resources/filters/./quarto-pre/parsefiguredivs.lua:517) Figure with invalid crossref category: footer-right-posit-logo
Won't be able to cross-reference this figure.
Although, Quarto will raise a warning
We're raising a warning because of the dashes being used here. (We've considered removing this warning because it causes too many false positives like that. I'll probably do it right now.)
@mcanouil - I cannot replicate your text
example. When an extension declares page-footer
with an image like your example, the resulting HTML contains paths which are relative to the extension directory and not resolved.
The example was mostly about the statement saying that HTML is required.
The main issue with assets inside extension is how to tell Quarto how to find them, both when creating an extension and using them.
Currently, if you use some paths in a template.qmd
at the root of your extension, the directory tree does not contains org/user account, while it will when quarto add/use
.
One way to "solve" this is format-resources
(https://quarto.org/docs/journals/formats.html#format-resources).
Unfortunately, it means to copy the assets from the extension into the main directory.
It would be nice if Quarto could look for resources inside extensions without having to set "_extensions/account/ext-name" (path if installed using quarto add
) for all resources.
For reference:
Bug description
An extension defining a custom project type wants to declare a shared footer and use some images as icons within that footer. For example:
If the page footer supported an
image
attribute and took an image path, the in-extension path could be resolved without resorting to HTML.My understanding is that Quarto does not attempt to resolve asset paths within text, but can do so for fields which are known to contain file references.
Steps to reproduce
No response
Expected behavior
No response
Actual behavior
No response
Your environment
No response
Quarto check output