class Kramdown::Parser::Kramdown
def update_tree(element)
Update the tree by parsing all :text elements with the span level parser (resets
def update_tree(element) element.children.map! do |child| if child.type == :text @stack, @tree = [], nil @src = StringScanner.new(child.value) parse_spans(child) child.children else update_tree(child) update_attr_with_ial(child.options[:attr] ||= {}, child.options[:ial]) if child.options[:ial] child end end.flatten! end