]> git.wincent.com - wikitext.git/commit
Accept options hash in "to_wikitext" and "w" methods
authorWincent Colaiuta <win@wincent.com>
Mon, 23 Feb 2009 21:39:01 +0000 (22:39 +0100)
committerWincent Colaiuta <win@wincent.com>
Mon, 23 Feb 2009 21:39:01 +0000 (22:39 +0100)
commit4795955422bfbcc6654a5e55f733680c18c4a9e6
treed51b4a0dcd1d9fd4d66e55351c1659fa3f33c2db
parente7f61bff7bc8aed3b8b85260058d66c220eb555e
Accept options hash in "to_wikitext" and "w" methods

Seeing as "w" is the most frequently-used means of translating
wikitext in the context of a web application, it makes sense to
provide a means of passing in an optional options hash so that
overrides can be conveniently fed into the parser on demand.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
lib/wikitext/string.rb
spec/string_spec.rb