Skip to content

Commit

Permalink
Update to pandoc 2.0
Browse files Browse the repository at this point in the history
Pandoc 2.0 was recently released and propagated to conda forge. It has
a change that is breaking for us in that it removes the "smart mode"
which is instead a "smart extension".
Zaharid committed Nov 14, 2017
1 parent 06f901b commit c8f8122
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ requirements:
- pygments
- blessings
- curio
- pandoc
- pandoc >=2

test:
requires:
8 changes: 6 additions & 2 deletions src/reportengine/report.py
Original file line number Diff line number Diff line change
@@ -286,9 +286,13 @@ def report(template_text, report_style, output_path,

args = ['pandoc', str(path), *meta_args,
'-o', str(pandoc_path),
'-s' ,'-S' ,'--toc',
'-s' ,'--toc',
#http://stackoverflow.com/questions/39220389/embed-indented-html-in-markdown-with-pandoc
'-f', 'markdown+raw_html',
'-f',
#TODO: Enable +smart when we can rely on pandoc 2.0
#'markdown+raw_html+smart',
'markdown+raw_html',

'--to', 'html5',
'--css', report_style,
*template_args,

0 comments on commit c8f8122

Please sign in to comment.