Class: Engines::RedMarkdown
- Inherits:
-
MarkupEngine
- Object
- Chunk::Abstract
- MarkupEngine
- Engines::RedMarkdown
- Defined in:
- app/models/chunks/engines.rb
Instance Attribute Summary
Attributes inherited from Chunk::Abstract
Instance Method Summary collapse
Methods inherited from MarkupEngine
Methods inherited from Chunk::Abstract
#initialize, #post_mask, #pre_mask, #revert, #unmask
Constructor Details
This class inherits a constructor from Chunk::Abstract
Instance Method Details
#mask(content) ⇒ Object
23 24 25 26 27 |
# File 'app/models/chunks/engines.rb', line 23 def mask(content) rc = RedCloth.new(text,content.[:engine_opts]) rc.rules = [:markdown] rc.to_html end |