New (believe it or not) Code!
Discount has been shoved up to version 2.1.8 with a year and a half’s worth of bugfixes and (minor) feature tweaks.
Here’s what I (and other contributors) changed:
- FINALLY address the bug where markdown extra footnotes lose numbering when they show up in nested element; I was not carrying the m-e reference# inside the footnotes structure, but was instead carrying it in the parent structure and not updating it. So I changed the footnotes structure to include the reference + the list of footnotes, which made the misnumbering go away on my tests.
- Fix makefile distclean to cleanup all the generated files and corrected the names of the installed sample program man pages to end in .1 (Mark Pizzolato mark@infocomm.com)
- Change the mail demangler to a debian-specific ‘always mangle one way’ hack. (enabled with the configure.sh option –debian-glitch)
- Add –with-unmangled-email compile-time flag to disable mailto: mangling
- Allow the magic output filename
-
, which means send output to stdout instead of to a file. - Fix a bug where autolink + github flavored markdown absorbs the ^C eoln character into a link at the end of a line.
- Tweak install.samples so that the user can supply a SAMPLE_PFX on the
command line
SAMPLE_PFX=discount- make install.samples
to install the sample programs with a package-specific prefix. - Emit pages in utf-8 instead of us-ascii (simply a change to the Content-Type meta) (Nathan Phillip Brink binki@gentoo.org)
- Patch the horrible list handler to support long numeric list items (George Hartzell hartzell@alerce.com)
- Bugfixes (Masayoshi Sekimura sekimura@gmail.com)
- Fix support for
CFLAGS=-m32 ./configure.sh
by using CFLAGS for all build invokations of CC. (Nathan Phillip Brink binki@gentoo.org) - Github-style language attributes on fenced code blocks (Loren Segal lsegal@amazon.com)
- When defining WORD & DWORD, check first for the MS Windows WinDef.h file; if found, include it instead of defining WORD & DWORD ourselves.
- support url-encoded anchor links with –with-urlencoded-anchor option (Daisuke Murase typester@cpan.org)
All of these defects were brought to my attention by other people using discount – it’s stable enough for me so I never noticed any of them. (And I don’t use some of the features, so things like markdown extra footnotes blowing up never crossed my radar.)