On Tuesday, 25 August, 2020 at 11:50:33 pm UTC+5:30 Pranesh Prakash wrote:
> Error producing PDF.
> ! LaTeX Error: Missing \begin{document}.
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type H <return> for immediate help.
> ...
>
> l.43 `
>

Investigating using `--verbose`, I find that the intermediate file has the "```{=latex}" / "```{=pdf}" intact:

\setcounter{secnumdepth}{5}
```{=latex}
\usepackage{microtype,parskip,bookmark,setspace,xurl,secdot}
\usepackage[hang,bottom,multiple]{footmisc}
\setlength{\footnotesep}{3mm}
```
```{=latex}
\usepackage{parskip}
\setlength{\parskip}{5pt plus1pt}
\setlength\parindent{1.5em}
```
\ifxetex
  % Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic)


This back-tick is what is causing the error.

Clearly I've done something wrong in the way I include the headers.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/5410022c-4154-4c69-999a-8862f97a8f8an%40googlegroups.com.