mdwn: Automatically detect which libdiscount flags to use
authorSimon McVittie <smcv@debian.org>
Thu, 8 Mar 2018 23:36:31 +0000 (23:36 +0000)
committerSimon McVittie <smcv@debian.org>
Thu, 8 Mar 2018 23:36:31 +0000 (23:36 +0000)
commite3279c8b508ce88ea2b23f99a1d8a4295fb06dd9
treeb68ba1a8acf11ae12234962ec666d1bab4853a26
parent06953a196a200441bfc6e9a9942231b03b23537f
mdwn: Automatically detect which libdiscount flags to use

Unconditionally passing arbitrary numbers as flags turns out to be a
bad idea, because some of the "unused" values have historically had
side-effects internal to libdiscount. Detect whether the known flags
work by rendering short Markdown snippets the first time we htmlize,
checking whether each known flag is both necessary and sufficient.

Signed-off-by: Simon McVittie <smcv@debian.org>
IkiWiki/Plugin/mdwn.pm
doc/bugs/discount_stopped_rendering_markdown_links.mdwn
t/mdwn.t