Commit f82287e2 authored by http://jneen.net/'s avatar http://jneen.net/

use the local lexer variable to respect plain: ...

parent ff7e679b
......@@ -31,7 +31,7 @@ module Gitlab
continue = false
end
@formatter.format(@lexer.lex(text, continue: continue)).html_safe
@formatter.format(lexer.lex(text, continue: continue)).html_safe
rescue
@formatter.format(Rouge::Lexers::PlainText.lex(text)).html_safe
end
......
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