From 5efcf487985e7348ed3d39f33b7185028a6e3716 Mon Sep 17 00:00:00 2001 From: murphy Date: Sat, 21 May 2011 03:03:31 +0000 Subject: various fixes and cleanups in CodeRay's helpers --- lib/coderay/for_redcloth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/coderay/for_redcloth.rb') diff --git a/lib/coderay/for_redcloth.rb b/lib/coderay/for_redcloth.rb index 2af9082..1946f8e 100644 --- a/lib/coderay/for_redcloth.rb +++ b/lib/coderay/for_redcloth.rb @@ -45,7 +45,7 @@ module CodeRay if !opts[:lang] && RedCloth::VERSION.to_s >= '4.2.0' # simulating pre-4.2 behavior if opts[:text].sub!(/\A\[(\w+)\]/, '') - if CodeRay::Scanners[$1].plugin_id == :plaintext + if CodeRay::Scanners[$1].plugin_id == :text opts[:text] = $& + opts[:text] else opts[:lang] = $1 -- cgit v1.2.1