New Code!
Discount has been shoved, rudely, up to version 1.3.0pre3 as a test release for a large stack of new features and a smaller list of bugfixes.
On the bugfix front, I’ve fixed a case where the code dumped core when it was fed an empty list (reported by Petite Abeille), a few cases where I was overrunning buffers and testing against bogus data (also reported by Petite Abeille), and where a list of the form 1. this 2. is - a - test incorrectly produced two lists in the output, instead of a (bizarre, but that’s what the language demands,) single ordered list like this:
- this
- is
- a
- test
On the horrible feature front, I’ve added
- table of contents code (originally code by Jjgod Jiang)
xhtmlpage()
function suggested by Tim Channon.xhtmlpage()
takes a markdown document and attempts to build a complete xhtml page out of it, inserting the contents of any [header][document header]s and style blocks in the correct places.- many boundary condition bugs discovered by Petite Abeille
- class blocks.
- superscripts.
- alphabetic ordered lists.
I have probably forgotten some new features, the features I’ve remembered are still woefully undocumented, and I suspect there aremany many things wrong with this code, and that’s why it’s version 1.3.0pre3. But what use is life without some New Code! to play with every now and then?