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