Flattery will get you everywhere (#2 in a series)
–Announcement in the reddit blog this afternoon.
Admittedly, there are still some defects in 1.6.0 (there’s going to be a 1.6.1 coming out in the next day or so (after the reddit userbase has had their chance to find and exploit more of the security holes in my code)) but it’s nice to see some of my programs being useful to people other than myself.
Comments
The webpage for discount lists two (incompatible?) ways of marking a blockquote as being a div instead:
A blockquote with a first line of > %class% will become <div class="class"> instead of a <blockquote>.
and
>%class:A%
this is a class A div block
%class:B%
this is a class B div block
properly generates
<div class="A"><p>this is a class A div block</p></div>
<div class="B"><p>this is a class B div block</p></div>”
Neither worked in my testing.
Am I missing something? Is there some command line switch that turns this feature on? Or is this an old feature that got cut?
As of right now, it’s not configurable at runtime (I made the bad design decision to have it be a configuration option) so you’ll have to enable it when you run configure.sh
:
configure.sh --enable-div {all the other enable options you want}
and then it will just work no matter what.
%class:
class%
is the long version of %
class%
; there’s also %id:
class%
for additional css hilarity.
Ah. I actually looked at the source and saw the #IF statement around the div code and thought, “Huh? Is this a compile-time option or something?… Nah, why would anyone do something crazy like that. I just must not understand C very well.”
I guess I should gone with my gut! :-)
Comments are closed
Well done. It’s preposterous that a) people have forgotten that a compiled C binary is usually much faster than some script b) all these goddamn Web boards have spent so much time badly reimplementing NNTP instead of just putting a shiny frontend to a lean implementation thereof.