def determine_paragraph_type
@paragraph_type = \
case
when blank?
:blank
when definition_list?
:definition_term
when (ordered_list? or unordered_list?)
:list_item
when property_drawer_begin_block?
:property_drawer_begin_block
when property_drawer_end_block?
:property_drawer_end_block
when property_drawer_item?
:property_drawer_item
when metadata?
:metadata
when block_type
if block_should_be_exported?
case block_type.downcase.to_sym
when :center, :comment, :example, :html, :quote, :src
block_type.downcase.to_sym
else
:comment
end
else
:comment
end
when title?
:title
when raw_text?
:raw_text
when comment?
:comment
when table_separator?
:table_separator
when table_row?
:table_row
when table_header?
:table_header
when inline_example?
:inline_example
when horizontal_rule?
:horizontal_rule
else :paragraph
end
end