summaryrefslogtreecommitdiff
path: root/lib/coderay/for_redcloth.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2011-05-21 03:03:31 +0000
committermurphy <murphy@rubychan.de>2011-05-21 03:03:31 +0000
commit5efcf487985e7348ed3d39f33b7185028a6e3716 (patch)
treeddaa71a4884a5349d985526f88f11a7514c7b6d7 /lib/coderay/for_redcloth.rb
parentc5a193f08ddef1ba1cb5e1f9b0789b2f587022c4 (diff)
downloadcoderay-5efcf487985e7348ed3d39f33b7185028a6e3716.tar.gz
various fixes and cleanups in CodeRay's helpers
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