@Jean, you know you can specify image sizes in pandoc as well, right? see http://pandoc.org/MANUAL.html#images

On Monday, May 1, 2017 at 7:18:56 PM UTC+2, RCDRUN wrote:
On Mon, May 01, 2017 at 01:39:34PM -0300, Fernando Botelho wrote:
> it would be really neat for the non-technical among us, if we could have
> this as a file format option. That way we could choose to convert to it as
> easily as we convert to normal html.

I am attaching the AMP template I am using.

I see that AMP HTML tags do not require much adaptation to normal HTML
tags. https://www.ampproject.org/docs/reference/spec

video and audio tags I am generating by using the plugin, and it is
then complicated. The plugin recognizes if it is AMP page, or if it is
email, or HTML page, and expands into corresponding correct tag.

<% (princ (cl-user::plugin-video :src "some-video.webm" :width 640 :height 480)) %>

The images were my problem, and still I don't know how to implement in
custom Lua writer possibility to provide image width and height. Once
I solve that, I can send it to the list.

I am using discount markdown that allows me to correctly specify
image sizes such as:

![SAM_0020.JPG](http://www.startyourowngoldmine.com/images/syogm/tanzania/2017/02/2017-02-04/SAM_0020.JPG  =2048x1536 "SAM_0020.JPG")

So now I am simply thinking not to use Pandoc, just to recompile the
discount markdown to have the IMG tag correct for AMP, and I am done
myself.

Jean

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a1643278-9ec1-46a7-80d8-c0238b5b9f22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.