rouge 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rouge/plugins/redcarpet.rb +1 -1
- data/lib/rouge/version.rb +1 -1
- metadata +1 -1
@@ -12,7 +12,7 @@ module Rouge
|
|
12
12
|
module Plugins
|
13
13
|
module Redcarpet
|
14
14
|
def block_code(code, language)
|
15
|
-
name, opts = language.split('?')
|
15
|
+
name, opts = language ? language.split('?', 2) : [nil, '']
|
16
16
|
|
17
17
|
# parse the options hash from a cgi-style string
|
18
18
|
opts = CGI.parse(opts || '').map do |k, vals|
|
data/lib/rouge/version.rb
CHANGED