Class: Zlide::Redcarpet::Renderers::Mock

Inherits:
Redcarpet::Render::HTML
  • Object
show all
Defined in:
lib/zlide/redcarpet/renderers/mock.rb

Overview

Base

Instance Method Summary collapse

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