From 498df2b7654c210c8f47e2757efc33cd94689b57 Mon Sep 17 00:00:00 2001 From: murphy Date: Sat, 25 Jun 2011 18:23:07 +0000 Subject: coderay list subcommand and cleanups/fixes in Plugin helper (issue #45) --- 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 1946f8e..f9df32b 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 == :text + if CodeRay::Scanners[$1].lang == :text opts[:text] = $& + opts[:text] else opts[:lang] = $1 -- cgit v1.2.1