rdiscount icon indicating copy to clipboard operation
rdiscount copied to clipboard

KISS: be a thinner layer over the Discount library

Open sunaku opened this issue 14 years ago • 2 comments

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 RDiscount class were replaced by a single RDiscount#flags accessor 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 RDiscount class.
  • An environment variable RDISCOUNT_EXTENSIONS allows people to choose the set of RDiscount extensions and Discount flags that they want to enable at the command-line.

Cheers.

sunaku avatar Jul 13 '11 18:07 sunaku

Sounds like a useful design change. I will consider this for RDiscount 3.x.

davidfstr avatar Jan 25 '13 07:01 davidfstr

Awesome! I'm looking forward to having this merged into RDiscount 3.x. :smiley_cat:

sunaku avatar Nov 01 '13 20:11 sunaku