hello! the latest update of RedCloth broke a feature that I was using: $ echo ''@[ruby]puts "Hello, World!"@'' | redcloth _4.1.9_ <p><code lang="ruby">puts "Hello, World!"</code></p> vs. $ echo ''@[ruby]puts "Hello, World!"@'' | redcloth _4.2.0_ <p><code>[ruby]puts "Hello, World!"</code></p> the coderay/for_redcloth extension used the old syntax to enable syntax highlighting for @ and bc. code blocks. feature or bug? [murphy]
anything new about this? Kornelius Kalnbach wrote:> hello! > > the latest update of RedCloth broke a feature that I was using: > > $ echo ''@[ruby]puts "Hello, World!"@'' | redcloth _4.1.9_ > <p><code lang="ruby">puts "Hello, World!"</code></p> > > vs. > > $ echo ''@[ruby]puts "Hello, World!"@'' | redcloth _4.2.0_ > <p><code>[ruby]puts "Hello, World!"</code></p> > > the coderay/for_redcloth extension used the old syntax to enable syntax > highlighting for @ and bc. code blocks. > > feature or bug? > > [murphy]
Kornelius, thanks for being persistent. 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 How shall we make it work for everybody? On Jul 2, 2009, at 11:07 AM, Kornelius Kalnbach wrote:> anything new about this? > > Kornelius Kalnbach wrote: >> hello! >> >> the latest update of RedCloth broke a feature that I was using: >> >> $ echo ''@[ruby]puts "Hello, World!"@'' | redcloth _4.1.9_ >> <p><code lang="ruby">puts "Hello, World!"</code></p> >> >> vs. >> >> $ echo ''@[ruby]puts "Hello, World!"@'' | redcloth _4.2.0_ >> <p><code>[ruby]puts "Hello, World!"</code></p> >> >> the coderay/for_redcloth extension used the old syntax to enable >> syntax >> highlighting for @ and bc. code blocks. >> >> feature or bug? >> >> [murphy] > > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards
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-bracketsthank 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]