Fixed pandoc invocation while importing feeds

Newer version of `pandoc` normalize by default. If this legacy option is present, `pandoc` fails to run.
This commit is contained in:
Nikola Kotur 2017-11-13 12:08:26 +01:00 committed by GitHub
commit f87ffc88f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -728,8 +728,7 @@ def fields2pelican(
fp.write(new_content)
parse_raw = '--parse-raw' if not strip_raw else ''
cmd = ('pandoc --normalize {0} --from=html'
' --to={1} -o "{2}" "{3}"')
cmd = ('pandoc --from=html --to={1} -o "{2}" "{3}"')
cmd = cmd.format(parse_raw, out_markup,
out_filename, html_filename)