Skip to content

Commit b3e4a99

Browse files
committed
Update to pandoc 2.0
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".
1 parent 06f901b commit b3e4a99

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

conda-recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ requirements:
1919
- pygments
2020
- blessings
2121
- curio
22-
- pandoc
22+
- pandoc=2
2323

2424
test:
2525
requires:

src/reportengine/report.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,13 @@ def report(template_text, report_style, output_path,
286286

287287
args = ['pandoc', str(path), *meta_args,
288288
'-o', str(pandoc_path),
289-
'-s' ,'-S' ,'--toc',
289+
'-s' ,'--toc',
290290
#http://stackoverflow.com/questions/39220389/embed-indented-html-in-markdown-with-pandoc
291-
'-f', 'markdown+raw_html',
291+
'-f',
292+
#TODO: Enable +smart when we can rely on pandoc 2.0
293+
#'markdown+raw_html+smart',
294+
'markdown+raw_html',
295+
292296
'--to', 'html5',
293297
'--css', report_style,
294298
*template_args,

0 commit comments

Comments
 (0)