rouge 0.5.2 → 0.5.3
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/lexers/markdown.rb +1 -1
- data/lib/rouge/regex_lexer.rb +1 -1
- data/lib/rouge/version.rb +1 -1
- metadata +1 -1
@@ -31,7 +31,7 @@ module Rouge
|
|
31
31
|
# TODO: syntax highlight the code block, github style
|
32
32
|
rule /(\n[ \t]*)(```|~~~)(.*?)(\n.*?)(\2)/m do |m|
|
33
33
|
sublexer = Lexer.find_fancy(m[3].strip, m[4])
|
34
|
-
sublexer ||=
|
34
|
+
sublexer ||= PlainText.new(:token => Str::Backtick)
|
35
35
|
|
36
36
|
token Text, m[1]
|
37
37
|
token Punctuation, m[2]
|
data/lib/rouge/regex_lexer.rb
CHANGED
@@ -368,7 +368,7 @@ module Rouge
|
|
368
368
|
push_state = if state_name
|
369
369
|
get_state(state_name)
|
370
370
|
elsif block_given?
|
371
|
-
|
371
|
+
StateDSL.new(b.inspect, &b).to_state(self.class)
|
372
372
|
else
|
373
373
|
# use the top of the stack by default
|
374
374
|
self.state
|
data/lib/rouge/version.rb
CHANGED