remove the rouge copypasta and add notes to refactor
This commit is contained in:
parent
b14f313c83
commit
c50cded96e
2 changed files with 4 additions and 28 deletions
|
@ -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 a new issue