rouge 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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