I want to convert my A.md to B.pdf, the content of A.md  is
![](http://gityuan.com/images/context/context.jpg)

![](https://upload-images.jianshu.io/upload_images/944365-cf5c1a9d2dddaaca.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/456/format/webp)

![](https://img-blog.csdn.net/20180510164327114)


my command is
pandoc A.md -o B.pdf --pdf-engine=xelatex
it show error messages :

Error producing PDF.
! Unable to load picture or PDF file '/private/var/folders/hg/tnjcvbq55ydb7b4vlqfqh6yh0000gn/T/tex2pdf.-9d3be78556f187cb/af6d7020cfcfa704aea1546f1268396e41a51815.png'.
<to be read again>
                   }
l.70 ...d7020cfcfa704aea1546f1268396e41a51815.png}


I found if A.md only have the first url, it works. So I guess it's because the second and third url dont have a extension like ".png" ? So I try again with the command
pandoc A.md -o B.pdf --pdf-engine=xelatex --default-image-extension=png

and there are no errors, the second and third url were  added extension ".png" when convertin'. When I check the pdf the second image is good now, but the third image is wrong becus 
https://img-blog.csdn.net/20180510164327114 ''s image is not the same as 
https://img-blog.csdn.net/20180510164327114.png 's in browser.

Anybody can help me plz?

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e1afbbd7-05ab-44b9-9326-30b51b27bfd9n%40googlegroups.com.