.bundle/ruby/2.0.0/gems/kramdown-1.4.1/lib/kramdown/parser/kramdown.rb
# Update the tree by parsing all :+raw_text+ elements with the span-level parser (resets the
# environment) and by updating the attributes from the IALs.
Update the tree by parsing all :+raw_text+ elements with the span-level parser (resets the
environment) and by updating the attributes from the IALs.
Update the tree by parsing all : + raw_text + elements with the span - level parser ( resets the environment ) and by updating the attributes from the IALs .
def update_tree(element)
        last_blank = nil
        element.children.map! do |child|
          if child.type == :raw_text
            last_blank = nil
            reset_env(:src => ::Kramdown::Utils::StringScanner.new(child.value, element.options[:location]),
                      :text_type => :text)
            parse_spans(child)
            child.children
          elsif child.type == :eob
            []
          elsif child.type == :blank
            if last_blank
              last_blank.value << child.value
              []
            else
              last_blank = child
              child
            end
          else
            last_blank = nil
            update_tree(child)
            update_attr_with_ial(child.attr, child.options[:ial]) if child.options[:ial]
            update_raw_header_text(child) if child.type == :header
            child
          end
        end.flatten!
      end
def update_tree ( element ) last_blank = nil element . children . map! do | child | if child . type == :raw_text last_blank = nil reset_env ( :src => :: Kramdown :: Utils :: StringScanner . new ( child . value , element . options [ :location ] ) , :text_type => :text ) parse_spans ( child ) child . children elsif child . type == :eob [ ] elsif child . type == :blank if last_blank last_blank . value << child . value [ ] else last_blank = child child end else last_blank = nil update_tree ( child ) update_attr_with_ial ( child . attr , child . options [ :ial ] ) if child . options [ :ial ] update_raw_header_text ( child ) if child . type == :header child end end . flatten! end
Update the tree by parsing all :+raw_text+ elements with the span-level parser (resets the
environment) and by updating the attributes from the IALs.
Update the tree by parsing all : + raw_text + elements with the span - level parser ( resets the environment ) and by updating the attributes from the IALs .
element