New Code!
Get out the flamethrowers, weed killer, and planetbuster nukes, because annotations has been pushed up to version 1.0.4.2 with many changes, each more horrible than the last.
1.0.4.2 inflicts the following changes onto an unsuspecting world:
- In
configure.sh
,- FAIL if discount can’t be found
- FAIL if discount < 1.2.0
- In
format.c
- Remove the comment that describes the old (and now invalid) formatting.
byline()
now supplies the<p class="byline">
…</p>
block wrapperbyline()
uses a rudimentary printf-style format for placing author name (%A), post date (%D – w/ url link, %d – without), and %% escape, plus\n
-> newline and\\
-> \- In
article()
, callmkd_basename()
to set the root for all unqualified relative paths in urls.
- In
formatting.h
, add abase
field tostruct fmt
(to pass tomkd_basename
) and changestruct markup byline
tochar *byline
- In
indexer.c
- Always use a
<FORM>
block for the comment button even if there are already comments. - everywhere where I call
markdown()
, callmkd_basename()
first so that I can resolve url fragments.
- Always use a
- In
readconfig.c
,byline
is now a single-field configuration instead of a pair.- Generate
fmt.base
from the provided url.
- In
rss.c
, usefmt.base
formkd_basename()
and atom-format headers.
If you thought that the latest discount release was kind of dull, *this* is the New Code! that you’ve been looking for. I can’t guarantee birth defects, but if you gaze too long at this code you might find your eyeballs boiling and your ears bleeding from the sheer horror of it all.