diff options
author | Munken <mm.munk@gmail.com> | 2016-12-08 23:13:44 +0000 |
---|---|---|
committer | Munken <mm.munk@gmail.com> | 2016-12-08 23:13:44 +0000 |
commit | a36ee0ad4400b7e38bfa33ae99838dcb9527e870 (patch) | |
tree | 0235728939bc771052b2e5be3588fb609ca8ee76 /lib/banzai | |
parent | f7b09848c558b1a44571f27a9534c02c0501f181 (diff) | |
download | gitlab-ce-a36ee0ad4400b7e38bfa33ae99838dcb9527e870.tar.gz |
Better location for math lexer
Diffstat (limited to 'lib/banzai')
-rw-r--r-- | lib/banzai/filter/syntax_highlight_filter.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/banzai/filter/syntax_highlight_filter.rb b/lib/banzai/filter/syntax_highlight_filter.rb index 278d4d92d08..e7f6b715ba8 100644 --- a/lib/banzai/filter/syntax_highlight_filter.rb +++ b/lib/banzai/filter/syntax_highlight_filter.rb @@ -1,27 +1,5 @@ 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 |