-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trailing ::: at bottom of rendered html pages depending on quoting in page-footer
#8932
Comments
Thanks for this - makes sense that it's in the footer as it's showing on every page. I have rather complex footers that use site variables, etc., so I don't know how many others will run into this, but at least I know how to fix it for now. |
I just noticed that this works. website:
page-footer:
center: 'Project "created"' but not website:
page-footer:
center:
- text: 'Project "created"' Related in a way |
Ok so #8575 gave me some hints, and this happens because we do create this hidden div :::{.hidden render-id="footer-center-Project "created""}
Project "created"
::: For the rendering, and the > quarto pandoc -t native -f markdown
:::{.hidden render-id="footer-center-Project "created""}
Project "created"
:::
^Z
[ Para
[ Str ":::{.hidden"
, Space
, Str "render-id="
, Quoted DoubleQuote [ Str "footer-center-Project" ]
, Str "created\8221"
, Quoted DoubleQuote [ Str "}" , SoftBreak , Str "Project" ]
, Str "created\8221"
, SoftBreak
, Str ":::"
]
] Escaping works > quarto pandoc -t native -f markdown
:::{.hidden render-id="footer-center-Project \"created\""}
Project "created"
:::
^Z
[ Div
( ""
, [ "hidden" ]
, [ ( "render-id" , "footer-center-Project \"created\"" ) ]
)
[ Para
[ Str "Project"
, Space
, Quoted DoubleQuote [ Str "created" ]
]
]
] Using :::{.hidden render-id="footer-center-Project 'created'"}
Project 'created'
::: so it works no issue when using :::{.hidden render-id="footer-center"}
Project "created"
::: |
Experienced the same when using double-quotes to add information to the footer (adding some custom HTML). As soon as it contains Software/systemTested with quarto release version Reproducing the errorCan easily be reproduced by adding the following to the footer (left, right, or center):
Same when using not escaping the double quotes ( Fix (changing quotes)As outlined above, changing the quotes resolves the issue; artifacts no longer created.
|
_Originaly discussed in #8931
Create a website
Add the following to
_quarto.yml
underwebsite
quarto preview
This will look like this:
Now change the quoting of the YAML field
The
:::
will disappearIt happens in 1.4 but not in 1.3
So probably something with
key: 'value'
is not the same askey: "value"
in YAML (double quotes and single quotes have different escaping behavior)The text was updated successfully, but these errors were encountered: