Class: Markabb::Highlighters::Raw

Inherits:
SyntaxHighlighter show all
Defined in:
lib/markabb/highlighters/raw.rb

Overview

Raw syntax highlighter

Just wraps the code in a specified tag.

Instance Method Summary collapse

Methods inherited from SyntaxHighlighter

#initialize, #run

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