Open questr-hub opened 2 weeks ago
I can address the issue by adding a sed command as follows but I'm curious why Fabric's pattern for write_latex
is adding the extra lines, particularly since it instructs the API as folo
Clean with sed
cat article.md | fabric --pattern write_latex | sed '1d;$d' > article.tex
From system.md
for write_latex
pattern:
And, I added the following as well:
Hi @questr-hub I can confirm I have the same issue. Thank you for the workaround tip.
What happened?
I ran the the following command with the intention of using Fabric to
write_latex
from a Markdown document and then pipe that into theto_pdf
command to generate a PDF.cat article.md | fabric --pattern write_latex | to_pdf
Unfortunately, the LaTeX file that it creates has leading and trailing characters that the LaTeX engine called by
to_pdf
chokes on:First line of document:
```latex
Last line of document:```
Version check
Relevant log output
Relevant screenshots (optional)