Class: HackerSlides::TextileMarkupEngine
- Inherits:
-
MarkupEngine
- Object
- Engine::Base
- MarkupEngine
- HackerSlides::TextileMarkupEngine
- Defined in:
- lib/hacker_slides/engine/markup_engine.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.support_extnames ⇒ Object
14 15 16 |
# File 'lib/hacker_slides/engine/markup_engine.rb', line 14 def self.support_extnames ['.textile', '.t'] end |
Instance Method Details
#to_html(content) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/hacker_slides/engine/markup_engine.rb', line 18 def to_html(content) # turn off hard line breaks # turn off span caps (see http://rubybook.ca/2008/08/16/redcloth) red = RedCloth.new(content, [:no_span_caps]) red.hard_breaks = false return red.to_html end |