summaryrefslogtreecommitdiff
path: root/lib/coderay/for_redcloth.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/coderay/for_redcloth.rb')
-rw-r--r--lib/coderay/for_redcloth.rb2
1 files changed, 1 insertions, 1 deletions
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