Pandoc で Markdown to HTML すると Access violation in generated code when executing data at が出る件
Pandoc で Markdown から ePub を生成する作業をしているが、ちょっとした表示確認には ePub よりも軽い手段で確認したい。つまりは HTML である。
しかし Pandoc で Markdown to HTML すると Access violation in generated code when executing data at ... のようなエラーが たまに 出る。対処がやっとわかったのでまとめる。
前提
Windows 10 + Pandoc 2.5
対処
--self-contained
オプションは使わない。
--standalone
オプションを使う。
コマンドライン Before/After
before$ pandoc -f markdown -t html5 --self-contained -c stylesheet.css hidemaru.md title.txt -o book.html --toc --toc-depth=2 after $ pandoc -f markdown -t html --standalone -c ./stylesheet.css hidemaru.md title.txt -o book.html --toc --toc-depth=2
細かい修正がちらほらあるが、肝心なのは --self-contained
→ --standalone
だと思う。
原因は?
不明。--self-contained オプション(に相当する実装)が不安定なのだろうか。