class Prismic::Fragments::StructuredText::Block::Paragraph

Public Instance Methods

as_html(link_resolver=nil, html_serializer=nil) click to toggle source
# File lib/prismic/fragments/structured_text.rb, line 285
def as_html(link_resolver=nil, html_serializer=nil)
  custom_html = html_serializer && html_serializer.serialize(self, super)
  if custom_html.nil?
    %(<p#{class_code}>#{super}</p>)
  else
    custom_html
  end
end