hexojs / hexo-renderer-pandoc

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

:bug: fix #50: add `--wrap=none` option #51

Closed ligen131 closed 1 year ago

ligen131 commented 1 year ago

Please read the problem description in https://github.com/hexojs/hexo-renderer-pandoc/issues/50

Reason for this PR: https://github.com/hexojs/hexo-generator-feed/pull/198#issuecomment-1493268825

Adding the --wrap=none option to Pandoc does not seem to affect normal HTML rendering, and does not add redundant \r\n to the converted HTML.

Ritsuka314 commented 1 year ago

It is probablly more ideal to add the option to one's config.yml whenever desirable. I'm not sure if it is always a good idea to hard-code the option and force it up on everyone.