Problem with @[lang]...@ in RedCloth 4.2.0
murphy at rubychan.de
Thu Jul 2 15:34:45 EDT 2009
Jason Garber wrote:
> The language attribute of code phrases was taken out because of this
thank you, I understand now.
> How shall we make it work for everybody?
for me of course, the 4.1.9 behavior was more predictable and useful.
seems like we have a double backward-compatibility-issue ^_^
I already wrote a fix for the latest RedCloth versions:
if !opts[:lang] && RedCloth::VERSION.to_s >= '4.2.0'
# simulating pre-4.2 behavior
it works if the current behavior doesn't change again; I'm happy with
can we include the CodeRay.for_redcloth plugin into the RedCloth test
suite somehow, to prevent future problems?
More information about the Redcloth-upwards