This Space for Rent

New Code!

Discount has been hacked up to version 1.6.3 with an almost complete rewrite of the code block and backtick handlers. I’d been reading the spec too restrictively and only checked for one or two backticks to enclose `code` sections. So this meant that ``` code ``` sections wouldn’t process properly, and, worse yet, ``` code `` sections ``` would end up looking almost totally unlike the output from the reference dingus.

And to add insult to injury, I was (incorrectly) processing backslash escapes inside the code handler.

So I ripped out the old handlers, and after a short intermission for a truly spectacular allergy attack, rewrote them so they (a) made a little more sense and (b) worked more like the dingus. And then I published the new release, and here it is to tell the tale.