module Graphdown::Renderable
Public Instance Methods
paragraph(text)
click to toggle source
# File lib/graphdown/renderable.rb, line 5 def paragraph(text) if text =~ /^\s?\[.+\]\s?$/ parser = Parser.new unescaped_text = CGI.unescape_html(text) unescaped_text.split($/).each { |line| parser.parse(line) } parser.output else %(<p>#{text}</p>) end end