class Nexmo::Markdown::IndentFilter

Public Instance Methods

call(input) click to toggle source
# File lib/nexmo_markdown_renderer/filters/indent_filter.rb, line 4
      def call(input)
        input.gsub(/^^\s{4}\-\>\s(.+?)$/) do
          body = Nexmo::Markdown::Renderer.new.call($1)
          <<~HEREDOC
            <div class="indent">
              #{body}
            </div>
          HEREDOC
        end
      end