New Code!
Discount is in the throes of being updated to version 3 (and by “in the throes” I mean updating the documentation and tweaking the published interface to fit – sorry to anyone who’s going to be bitten by the v3 interface as it morphs before I officially publish the thing) so I’ve been trying to maintain a v2compat copy of it.
That code has been – after only 18 months – updated to version 2.2.7d with the addition of a handful of small patches as follows:
- markdown extra footnotes were slightly broken – two adjacent
footnotes (
[^1][^2]
) were being treated as a regular old hyperlink because the code I put in originally was a huge old monster bodge. - change the description for -fstrict.
- add a fistful of test cases for the new! improved! Markdown.pl
compatible
<tags>
- rework the tag handler to more closely adhere to Markdown.pl’s observed behavior; also treat incomplete tags as actual tags in compatability mode (-fstrict)
- fix weird behavior on freebsd 4.8 w/ gcc 2.95.4; if an
#ifdef … #else … #endif wraps the end of a
if ()
it pukes up an error about a syntax error in a macro; pull those tests out and conditionally #define a macro instead - the behavior of tags-starting-with-alpha-/-! was not like that of the reference implementation; fixed (in a very script-kiddy leaky fashion which I can’t resolve with a runtime flag thanks to the 32 bit flags field in the 2.x series :-(
As is traditional, I’ve tested these patches locally for a while, and periodically run my manual integration suite to make certain that I don’t blow up compatibility in the process.
So it works for me™ and will maybe not melt your computer. But computers are cheap, so download it now and roll the dice for yourself!