New Code!
Discount has been shoved up to version 1.6.4 with a bugfix for html block
handling, a couple of new feeping creatures, and some additional testcases
that cover the fixes to `code`
sections that I put into version 1.6.3.
The defect was that text following the closing tag of a html block would cause following content to be misprocessed (besides, of course, the existing defect that that text would not be processed.) The bugfix is that I now split following content into a new logical line, so input like
blah blah
foo which used to outputblah blah
foo now outputsblah blah blah
foo
The (creeping) features are
- Ryan Tomayko@github modified his copy of discount to do smartypants with
're
,'ll
,'ve', '
m', and'd
so I sucked those changes into the baseline code. - earthboundkid@github suggested the new pseudo-protocol
lang:<whatever>
which would expand into<span lang=<whatever>
…</span>
- Ryan Tomayko@github modified his copy of discount to do smartypants with
The additional testcases are to catch mishandled backslashes in code sections (most recently documented at http://code.reddit.com/ticket/695.) This defect was corrected in version 1.6.3, and I testcased it then, but more tests are always good.
I’ve been using it locally for the past week or so, and nothing seems to have exploded, so that makes it the ideal New Code! for you to download and play with.