rdiscount
rdiscount copied to clipboard
KISS: be a thinner layer over the Discount library
These commits make RDiscount a thinner layer over the Discount library. They introduce the following backwards-incompatible changes:
- SmartyPants is now enabled by default, because that's the default behavior of the Discount library.
- Many attribute accessors in the
RDiscountclass were replaced by a singleRDiscount#flagsaccessor which just contains the raw integer bit flags that are passed directly to the underlying Discount library. - Integer bit masks in the Discount library are exported (using the same names) as constants in the
RDiscountclass. - An environment variable
RDISCOUNT_EXTENSIONSallows people to choose the set of RDiscount extensions and Discount flags that they want to enable at the command-line.
Cheers.
Sounds like a useful design change. I will consider this for RDiscount 3.x.
Awesome! I'm looking forward to having this merged into RDiscount 3.x. :smiley_cat: