New Code!
Discount has been rolled up to version 1.5 with the addition of one new feature; I woke up early this morning and could either go out for a bike ride or could write some code, and I decided what better way to celebrate my birthday than to add PHP Markdown Extra-style table support?
So I did. And it’s gross and horrible, but it works and it doesn’t appear to have any memory leaks in it. And now you can do
a | b
-----|-----
hello|sailor
and have it produce
a | b |
---|---|
hello | sailor |
like the other more cpu-intensive scripting language versions do.
Is it tested? Weeeeeeeel, maybe. It works here (see above), I’ve written a test suite, and it doesn’t cause my memory leak detector to start screaming. But that’s all the testing I’ve done so far, and I’m so confident that it works that I haven’t even published it on the discount web page yet.
So, take it, compile it, use it, report bugs back (please?) It’s the New Code! that people have been asking for, and now they’ve got it!