class Kramdown::Converter::Latex

def convert_img(el, opts)

def convert_img(el, opts)
  if el.options[:attr]['src'] =~ /^(https?|ftps?):\/\//
    @doc.warnings << "Cannot include non-local image"
    ''
  elsif !el.options[:attr]['src'].empty?
    @doc.conversion_infos[:packages] << 'graphicx'
    "\\includegraphics{#{el.options[:attr]['src']}}"
  else
    @doc.warnings << "Cannot include image with empty path"
    ''
  end
end