Commit a36ee0ad authored by Munken's avatar Munken

Better location for math lexer

parent f7b09848
require 'rouge/plugins/redcarpet'
module Rouge
module Lexers
class Math < Lexer
title "Plain Text"
desc "A boring lexer that doesn't highlight anything"
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
module Banzai
module Filter
# HTML Filter to highlight fenced code blocks
......
module Rouge
module Lexers
class Math < Lexer
title "Plain Text"
desc "A boring lexer that doesn't highlight anything"
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
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment