Cannot use \includesvg{} and \input{} commands inside markdown anymore #186
-
This package is so excellent that it made me love writing. I have been using it for more than eight months now. However, after I updated to TeX Live 2022, everything suddenly stopped working. After some tinkering, I found out what was going on. This is the usual setup that I have always been using:
I am using this setup because sometimes, instead of
Unfortunately, markdown package cannot render these anymore. It shows the TeX comments inside When I select TeX Live 2021 on Overleaf, everything works fine. But TeX Live 2022 fails. I think it is a big issue. However, no one seems to notice it yet. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Dear @sinaatalay, glad to hear that the Markdown package has been so enjoyable to you and sorry to hear about your trouble. Since the conversion from markdown to TeX does not obey lines, TeX comments commonly consumed more input than intended, which was unintuitive and a security issue. Since version 2.10.0, percent signs ( Here is how you can change your code to take this change into account. Your code should still work with TeX Live 2021 after the change: \markdownSetup{
hybrid,
rendererPrototypes={
image = {
\begin{figure}[ht!]
\centering
\catcode`\%=14\relax
\catcode`\#=6\relax
#3
\catcode`\%=12\relax
\catcode`\#=12\relax
\caption{#4}
\label{fig:#1}
\end{figure}
}
}
} |
Beta Was this translation helpful? Give feedback.
Dear @sinaatalay, glad to hear that the Markdown package has been so enjoyable to you and sorry to hear about your trouble. Since the conversion from markdown to TeX does not obey lines, TeX comments commonly consumed more input than intended, which was unintuitive and a security issue. Since version 2.10.0, percent signs (
%
) are treated as letters with thehybrid
option, see also #42 and #89. Since 2.16.1, the same is true of hash signs (#
).Here is how you can change your code to take this change into account. Your code should still work with TeX Live 2021 after the change: