Class: TextUtils::CustomMarkdown

Inherits:
Processor show all
Defined in:
lib/text_utils/custom_markdown.rb

Instance Method Summary collapse

Methods inherited from Processor

#initialize

Constructor Details

This class inherits a constructor from TextUtils::Processor

Instance Method Details

#call(data, env) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/text_utils/custom_markdown.rb', line 2

def call data, env
  if env[:format] == :markdown
    hide_html_tags data do |data|
      image_box data do |data|
        call_next data, env
      end
    end
  else
    call_next data, env
  end
end