Markdown format behaves differently and the formatting of some headings
is wrong.
clean::
rm -f $(OBJS) docgen
-markdown = $(shell if pandoc -h|grep -q markdown_strict; then echo markdown_strict; else echo markdown; fi)
+markdown = $(shell if pandoc -h|grep -q markdown_strict; then echo markdown_strict; else echo commonmark; fi)
doc.mw: docgen
(echo '<div class="toclimit-2" style="float: right; margin-left: 1em;">__TOC__</div>'; ./docgen wiki) | pandoc -f $(markdown) -t mediawiki > $@