From e3279c8b508ce88ea2b23f99a1d8a4295fb06dd9 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 8 Mar 2018 23:36:31 +0000 Subject: 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 --- doc/bugs/discount_stopped_rendering_markdown_links.mdwn | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/bugs') diff --git a/doc/bugs/discount_stopped_rendering_markdown_links.mdwn b/doc/bugs/discount_stopped_rendering_markdown_links.mdwn index 1d70c926e..cfe544b02 100644 --- a/doc/bugs/discount_stopped_rendering_markdown_links.mdwn +++ b/doc/bugs/discount_stopped_rendering_markdown_links.mdwn @@ -34,3 +34,8 @@ Some guesses: > Orthogonally, pkgsrc should probably use an up-to-date version of Discount, and > [we already know that Text::Markdown::Discount needs updating](https://rt.cpan.org/Public/Bug/Display.html?id=124188). > --[[smcv]] + +>> This should be [[fixed|done]] in current git. The mdwn module now +>> detects what your version of Discount supports by trying several +>> short HTML fragments that render differently under the different +>> flags. --[[smcv]] -- cgit v1.2.3