Tried using this command
for i in *.md; do pandoc "$i" -t context -o "${i%.md}.pdf"; done
Result:
pandoc(2911,0x20a683e00) malloc: can't allocate region
:*** mach_vm_map(size=1048576, flags: 100) failed (error code=268435465)
pandoc(2911,0x20a683e00) malloc: *** set a breakpoint in malloc_error_break to debug
pandoc: context: createProcess: runInteractiveProcess: exec: resource exhausted (Cannot allocate memory)
pandoc(2914,0x20795ee00) malloc: can't allocate region
:*** mach_vm_map(size=1048576, flags: 100) failed (error code=268435465)
pandoc(2914,0x20795ee00) malloc: *** set a breakpoint in malloc_error_break to debug
pandoc: context: createProcess: runInteractiveProcess: exec: resource exhausted (Cannot allocate memory)