Older Pandoc version crashes build
Like this:
[11/154] Generating adjust_detector.1.md with a custom command
FAILED: adjust_detector.1
/usr/bin/pandoc ../doc/man/adjust_detector.1.md -o adjust_detector.1 -s -f markdown-smart -t man
pandoc: Unknown extension: smart
[12/154] Generating indexamajig.1.md with a custom command
FAILED: indexamajig.1
/usr/bin/pandoc ../doc/man/indexamajig.1.md -o indexamajig.1 -s -f markdown-smart -t man
pandoc: Unknown extension: smart
[13/154] Generating align_detector.1.md with a custom command
FAILED: align_detector.1
/usr/bin/pandoc ../doc/man/align_detector.1.md -o align_detector.1 -s -f markdown-smart -t man
pandoc: Unknown extension: smart
[14/154] Generating crystfel_geometry.5.md with a custom command
FAILED: crystfel_geometry.5
/usr/bin/pandoc ../doc/man/crystfel_geometry.5.md -o crystfel_geometry.5 -s -f markdown-smart -t man
pandoc: Unknown extension: smart
The following change is needed, but it should be conditional on the old version:
diff --git a/meson.build b/meson.build
index 3830acb..0a9c634 100644
--- a/meson.build
+++ b/meson.build
@@ -291,7 +291,7 @@ if pandoc.found()
input: join_paths('doc/man', page),
output: '@BASENAME@',
command: [pandoc, '@INPUT@','-o', '@OUTPUT@',
- '-s', '-f', 'markdown-smart', '-t', 'man'],
+ '-s', '-f', 'markdown', '-t', 'man'],
install: true,
install_dir: join_paths(get_option('mandir'), 'man1'))
endforeach
--
1.8.3.1