Class: Zlide::Redcarpet::Renderers::Mock
- Inherits:
-
Redcarpet::Render::HTML
- Object
- Redcarpet::Render::HTML
- Zlide::Redcarpet::Renderers::Mock
- Defined in:
- lib/zlide/redcarpet/renderers/mock.rb
Overview
Base
Instance Method Summary collapse
- #block_html(text) ⇒ Object
- #entity(text) ⇒ Object
- #header(text, level) ⇒ Object
- #paragraph(text) ⇒ Object
Instance Method Details
#block_html(text) ⇒ Object
7 8 9 |
# File 'lib/zlide/redcarpet/renderers/mock.rb', line 7 def block_html(text) puts "block html: #{text}" end |
#entity(text) ⇒ Object
23 24 25 |
# File 'lib/zlide/redcarpet/renderers/mock.rb', line 23 def entity(text) puts "ENTITY: #{text}" end |
#header(text, level) ⇒ Object
19 20 21 |
# File 'lib/zlide/redcarpet/renderers/mock.rb', line 19 def header(text, level) puts "header#{level}: #{text}" end |
#paragraph(text) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/zlide/redcarpet/renderers/mock.rb', line 11 def paragraph(text) if text =~ /!SLIDE/ puts "p: #{text}" else puts super(text) end end |