# File lib/kramdown/parser/kramdown/paragraph.rb, line 44 def parse_paragraph result = @src.scan(PARAGRAPH_MATCH) while !@src.match?(self.class::PARAGRAPH_END) result << @src.scan(PARAGRAPH_MATCH) end result.chomp! if @tree.children.last && @tree.children.last.type == :p @tree.children.last.children.first.value << "\n" << result else @tree.children << new_block_el(:p) result.lstrip! @tree.children.last.children << Element.new(@text_type, result) end true end