Class: Pakyow::Markdown::Renderer

Inherits:
Redcarpet::Render::HTML
  • Object
show all
Includes:
Rouge::Plugins::Redcarpet
Defined in:
lib/pakyow/markdown/renderer.rb

Instance Method Summary collapse

Instance Method Details

#block_quote(quote) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/pakyow/markdown/renderer.rb', line 13

def block_quote(quote)
  if match = quote.match(/<p>\[(.*)\]/)
    %(<blockquote class="#{match[1]}">#{quote.gsub("[#{match[1]}]", "")}</blockquote>)
  else
    super
  end
end