I tried this:for f in *.md; do pandoc "$f" -o "${f%.md}.pdf"; done

But I get an error:

andoc(45574,0x207810e00) malloc: *** set a breakpoint in malloc_error_break to debug

pandoc: pdflatex: createProcess: runInteractiveProcess: exec: resource exhausted (Cannot allocate memory)
On Sunday, August 1, 2021 at 11:43:42 AM UTC+4 SlyFox wrote:

What is the best way to export multiple Markdown files in a folder to (individual) PDF files?

I installed pandoc for Mac but I can’t figure out how to:

a) export multiple files to multiple PDF files. The manual seems to focus on merging multiple Markdown files into a single PDF file.

b) keep the same file name - input to output.

--
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/3e40a8c4-e2e9-486a-b5c0-184847e2cbb7n%40googlegroups.com.