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".
  • Loading branch information
Zaharid committed Nov 13, 2017
1 parent 06f901b commit b3e4a99
Show file tree
Hide file tree
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
Expand Up @@ -19,7 +19,7 @@ requirements:
- pygments
- blessings
- curio
- pandoc
- pandoc=2

test:
requires:
Expand Down
8 changes: 6 additions & 2 deletions src/reportengine/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b3e4a99

Please sign in to comment.