今天安裝markdown-pdf之后運行的時候報錯:
AssertionError: html-pdf: Failed to load PhantomJS module. You have to set the path to the PhantomJS binary using ‘options.phantomPath’
之后安裝brew install phantomjs
,還是報相同的錯誤。
直接換markdown-themeable-pdf就可以正常生成pdf了。
環境是mac,windows的可以參考這篇博客.