What's wrong with the attached MWE? If I try to compile taocp.md with pandoc taocp.md -o taocp.pdf, I receive the error message from LaTeX: 

Error producing PDF.
! File ended while scanning use of \@writefile.
<inserted text>  
               \par  
l.49 \begin{document}

If I delete either non-empty input line, the compilation is successful and the links work in the PDF dile.

(pandoc taocp.md -s -o taocp.html works fine.)

--
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/9600a513-8196-4747-953f-70ada224a688%40googlegroups.com.