New Code!
Discount has been pushed up to version 2.0.4beta1 with the addition of a yucky new compatability feature; PHP markdown extra-style definition list support, so (after you’ve configured the thing properly) text like
definition lists
: are pretty horrible no matter how you do them
will translate to
definition lists : are pretty horrible no matter how you do them
just like the traditional
=definition lists=
are pretty horrible no matter how you do them
does.
The new definition list style is defined when you run configure.sh
with the following settings:
--with-dl=both
: enable both traditional and markdown extra-style definition lists
--with-dl=discount
: enable traditional definition lists only
--with-dl=extra
: enable markdown extra-style definition lists only.
(no, you can’t disable definition lists through the --with-dl
flag, sorry.)
What this release doesn’t have is
- documentation
- test cases
- any sort of exhaustive check for edge cases (but they may be covered because I use the same blocking engine for markdown extra syntax and my traditional syntax, and
make test
hasn’t fallen over dead in any of the existing edge cases.)
But it’s been tested by a couple of applications and it doesn’t create obviously wrong output in either of them, so it’s the New Code! of your dreams (if your dreams involve defusing small nuclear devices) and you should grab it and test it out now, then report the crashes and bizarre edge cases to me either as a comment or by mail.