Merge branch 'feature/rouge-2.1.0' into 'master'
update rouge to 2.1.0 See merge request !11992
This commit is contained in:
commit
abc61f2600
|
@ -655,7 +655,7 @@ GEM
|
|||
retriable (1.4.1)
|
||||
rinku (2.0.0)
|
||||
rotp (2.1.2)
|
||||
rouge (2.0.7)
|
||||
rouge (2.1.0)
|
||||
rqrcode (0.7.0)
|
||||
chunky_png
|
||||
rqrcode-rails3 (0.1.7)
|
||||
|
|
|
@ -1,21 +1,9 @@
|
|||
module Rouge
|
||||
module Lexers
|
||||
class Math < Lexer
|
||||
class Math < PlainText
|
||||
title "A passthrough lexer used for LaTeX input"
|
||||
desc "A boring lexer that doesn't highlight anything"
|
||||
|
||||
desc "PLEASE REFACTOR - this should be handled by SyntaxHighlightFilter"
|
||||
tag 'math'
|
||||
mimetypes 'text/plain'
|
||||
|
||||
default_options token: 'Text'
|
||||
|
||||
def token
|
||||
@token ||= Token[option :token]
|
||||
end
|
||||
|
||||
def stream_tokens(string, &b)
|
||||
yield self.token, string
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,21 +1,9 @@
|
|||
module Rouge
|
||||
module Lexers
|
||||
class Plantuml < Lexer
|
||||
class Plantuml < PlainText
|
||||
title "A passthrough lexer used for PlantUML input"
|
||||
desc "A boring lexer that doesn't highlight anything"
|
||||
|
||||
desc "PLEASE REFACTOR - this should be handled by SyntaxHighlightFilter"
|
||||
tag 'plantuml'
|
||||
mimetypes 'text/plain'
|
||||
|
||||
default_options token: 'Text'
|
||||
|
||||
def token
|
||||
@token ||= Token[option :token]
|
||||
end
|
||||
|
||||
def stream_tokens(string, &b)
|
||||
yield self.token, string
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue