hexojs / hexo-renderer-pandoc

A pandoc-markdown-flavor renderer for hexo.
https://npmjs.com/hexo-renderer-pandoc
MIT License
118 stars 33 forks source link

how to set next's _config.yml when using hexo-next #16

Closed sli1989 closed 6 years ago

sli1989 commented 6 years ago

in version 0.2.1, adding if(config.template) args.push("--template=" + config.template); leads to TypeError: Cannot read property 'template' of undefined when hexo generate...

how to set pandoc in _config.yml, thank you for your help.

pandoc:
  filters:
  extra:
  template:
  meta:
  mathEngine:
  1. mathjax: enable: true in the theme's _config.yml,
  2. npm uninstall hexo-renderer-marked --save
  3. npm install hexo-renderer-pandoc --save
  4. hexo g failed
  5. Remove the if(config.template) args.push("--template=" + config.template); in hexo\node_modules\hexo-renderer-pandoc\index.js ,
  6. hexo g passed
sli1989 commented 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: