class Kramdown::Converter::Html

def unwrap_links(elements)

Remove all link elements by unwrapping them.
def unwrap_links(elements)
  elements.map! do |c|
    unwrap_links(c.children)
    c.type == :a ? c.children : c
  end.flatten!
end