Problem with @[lang]...@ in RedCloth 4.2.0

Kornelius Kalnbach 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
> ticket: 
> http://jgarber.lighthouseapp.com/projects/13054/tickets/124-code-markup-does-not-allow-brackets
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
that :)

can we include the CodeRay.for_redcloth plugin into the RedCloth test
suite somehow, to prevent future problems?

[murphy]



More information about the Redcloth-upwards mailing list