Class: Markabb::Highlighters::Raw
- Inherits:
-
SyntaxHighlighter
- Object
- SyntaxHighlighter
- Markabb::Highlighters::Raw
- Defined in:
- lib/markabb/highlighters/raw.rb
Overview
Raw syntax highlighter
Just wraps the code in a specified tag.
Instance Method Summary collapse
-
#parse(lang, s) ⇒ Object
Parses the inputted text, takes 2 options, the language of the code and the code.
Methods inherited from SyntaxHighlighter
Constructor Details
This class inherits a constructor from Markabb::SyntaxHighlighter
Instance Method Details
#parse(lang, s) ⇒ Object
Parses the inputted text, takes 2 options, the language of the code and the code.
8 9 10 |
# File 'lib/markabb/highlighters/raw.rb', line 8 def parse(lang, s) return "<#{open_tag}>[nobbc]#{s}[/nobbc]</#{close_tag}>" end |