Skip to main content
100%

WSLへのPandocのインストール ref: https://qiita.com/SOhtsu/items/e921142372d0f4cce410

✓ Published0🌍 Public
OOhtsu
Last edited Nov 9, 2018
Created on Nov 9, 2018

This example demonstrates a Node.js script that converts Markdown files into PDF documents using Pandoc, with a specific focus on Japanese typesetting. The code spawns the Pandoc process with arguments for LuaLaTeX as the PDF engine, the `ltjarticle` document class, a table of contents, and cross-referencing via the `pandoc-crossref` filter. It captures and prints the child process’s stdout and stderr streams to the console. The script relies on the `child_process` module’s `spawn` API to manage the external command.

AI-generated description

Similar vizzes