Replies: 2 comments 3 replies
-
Regarding the underscore in label, this is indeed not allowed. It was not a problem to render before but still not advised. Now all labels are used as This has been discussed in Plan is to add a clear error about the problem and disallow rendering of document with
Can you open a new issue about this with reproducible example and information on your system setup ? Pandoc has been updated between 1.3 and 1.4 and could also be the source of the issue. Thanks ! |
Beta Was this translation helpful? Give feedback.
-
issue for encoding error created at #8485 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hello,
after upgrading quarto to the stable release 1.4.549, I get this error for a project started with the previous stable release (1.3.450).
pandoc: Cannot decode byte '\xc3': Data.Text.Encoding: Invalid UTF-8 stream
After some investigation, the culprit was an accented character "à" (italian document) present in a shortcode in the text:👍
with the previous version the presence of accented character was not an issue, and was nice to be able to write a yaml in my natural language. (by the way, the yaml file can contain accented character, the error is raised if they get called in the source file).
Also another change I noticed that use to work in 1.3.450 and not anymore in 1.4.549: in 1.3.450, I could write the label for a code cell (tbl-, fig-) with underscore character (
_
) between words, but with 1.4.549 it results in invalid latex because quarto escapes the underscore. To be more clear:tbl-parametri_neve
in source file, get translated in the latex file as:tbl-parametri_neve
with 1.3.450 (unchanged, latex can compile without errors)tbl-parametri\_neve
with 1.4.549 (latex raise an error, cannot compile)This escaping behavior is not really even consistent because in the latex file I can see that the labels that are automatically generated by python (e.g. equations labels) or the labels that I write for markdown elements such that contains underscore do not get escaped, they stay as is. It seems that quarto is too eager to escape the stuff it founds in the code cell (e.g.
#| label: tbl-some_words
)here a minimal working example:
which result in the following latex with 1.4.549 (only relevant part):
Beta Was this translation helpful? Give feedback.
All reactions