Closed sli1989 closed 6 years ago
you can close the issue.
if you want to use hexo-renderer-pandoc
(new version) in hexo , you must add default configuration in the site's _config.yml
not the theme's.
pandoc:
filters:
extra:
template:
meta:
mathEngine:
in version 0.2.1, adding
if(config.template) args.push("--template=" + config.template);
leads toTypeError: Cannot read property 'template' of undefined
whenhexo generate
...how to set pandoc in
_config.yml
, thank you for your help.mathjax: enable: true
in the theme's_config.yml
,npm uninstall hexo-renderer-marked --save
npm install hexo-renderer-pandoc --save
hexo g
failedthe if(config.template) args.push("--template=" + config.template);
inhexo\node_modules\hexo-renderer-pandoc\index.js
,hexo g
passed