Quote when using hugo shortcode #1657
Unanswered
linogaliana
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi !
Up to now I was using
quarto v0.97.3
. I wanted to upgrade my version to latest (v1.0.37
).I noticed a change of behavior in the quote parameter when using hugo shortcodes in newest quarto version that makes hugo fail to build websites. I use wowchemy academic theme but I think my problem is not related to the theme.
Example
In my
index.qmd
file, I was using a shortcode in the following fashion:See the complete example!
(I don't think you need to have the
tabs.html
file I use to understand the problem I am going to mention. It is really in the.qmd
->.md
transformation)Problem
After using
quarto index.qmd --to hugo
, I end up withindex.md
that is going to be used byhugo
. However, with newest hugo,hugo build
fails (while it were not when using quarto v0.97.3 forindex.qmd
->index.md
)Problem seems to be on the way
quarto
writes the shortcode (a conflict with quarto shortcode ?). The quote characters written on my.md
file (“
which is U+201C for instance) are not recognized by hugo as quote for shortcode parameters.What is written on
index.md
iswhile it should be
If I replace incriminated quote parameters with an-adhoc solution (in my case
re.sub(r"(“|”)",'"',content)
in a script that scans content of.md
files and overwrite them), hugo works fine.Note this does not happen when using
{{% %}}
shortcode format (probably no conflict with hugo shortcodes) but sometimes I can't use themBeta Was this translation helpful? Give feedback.
All reactions