You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explain the problem.
According to Typst syntax, double forward slashes are interpreted as comments. When the source text contains this pattern, the PDF resulting from Typst rendering is missing the remainder of the paragraph. Example is below.
Input markdown:
**Samsonov T.E.** Shape-Adaptive Geometric Simplification of Heterogeneous Line Datasets / T. E. Samsonov, O. P. Yakimova // International Journal of Geographical Information Science. — 2017. — Vol. 31. — № 8. — pp. 1485-1520.
Output typst:
#strong[Samsonov T.E.] Shape-Adaptive Geometric Simplification of Heterogeneous Line Datasets / T. E. Samsonov, O. P. Yakimova // International Journal of Geographical Information Science. — 2017. — Vol. 31. — № 8. — pp. 1485-1520.
Compiling Typst to PDF gives:
When applying this Lua filter:
return {
{
Str = function (elem)
if elem.text == "//" then
return pandoc.RawInline('typst', '\\/\\/')
else
return elem
end
end,
}
}
Output Typst is
#strong[Samsonov T.E.] Shape-Adaptive Geometric Simplification of Heterogeneous Line Datasets / T. E. Samsonov, O. P. Yakimova \/\/ International Journal of Geographical Information Science. – 2017. – Т. 31. – № 8. – С. 1485-1520.
And the resulting PDF is okay:
Resume
Since // is not a comment in the input, it is expected that it remains so in the output. I suggest that Typst writer should escape double forward slashes in plain text.
Explain the problem.
According to Typst syntax, double forward slashes are interpreted as comments. When the source text contains this pattern, the PDF resulting from Typst rendering is missing the remainder of the paragraph. Example is below.
Input markdown:
**Samsonov T.E.** Shape-Adaptive Geometric Simplification of Heterogeneous Line Datasets / T. E. Samsonov, O. P. Yakimova // International Journal of Geographical Information Science. — 2017. — Vol. 31. — № 8. — pp. 1485-1520.
Output typst:
#strong[Samsonov T.E.] Shape-Adaptive Geometric Simplification of Heterogeneous Line Datasets / T. E. Samsonov, O. P. Yakimova // International Journal of Geographical Information Science. — 2017. — Vol. 31. — № 8. — pp. 1485-1520.
Compiling Typst to PDF gives:
When applying this Lua filter:
Output Typst is
#strong[Samsonov T.E.] Shape-Adaptive Geometric Simplification of Heterogeneous Line Datasets / T. E. Samsonov, O. P. Yakimova \/\/ International Journal of Geographical Information Science. – 2017. – Т. 31. – № 8. – С. 1485-1520.
And the resulting PDF is okay:
Resume
Since
//
is not a comment in the input, it is expected that it remains so in the output. I suggest that Typst writer should escape double forward slashes in plain text.Pandoc version?
The text was updated successfully, but these errors were encountered: