From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/17523 Path: news.gmane.org!.POSTED!not-for-mail From: RCDRUN Newsgroups: gmane.text.pandoc Subject: Re: Markdown for AMP Project https://www.ampproject.org/ Date: Mon, 1 May 2017 20:14:17 +0300 Message-ID: <20170501171417.GA2499@protected.rcdrun.com> References: <74722d2b-3362-48e3-a0b4-fa4502bc8005@googlegroups.com> <886bb176-054d-4e41-ba2e-7058e30ad355@googlegroups.com> <382a2f59-fca3-4409-8b05-10bd7e884a70@googlegroups.com> <01c43386-de61-d9c5-7db0-9e422e7aeddd@F123.org> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1493659132 2231 195.159.176.226 (1 May 2017 17:18:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 1 May 2017 17:18:52 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDT3JGEATELRB663TXEAKGQEUBJCKPY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 01 19:18:48 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-wr0-f186.google.com ([209.85.128.186]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d5EyF-0000Tc-2z for gtp-pandoc-discuss@m.gmane.org; Mon, 01 May 2017 19:18:47 +0200 Original-Received: by mail-wr0-f186.google.com with SMTP id o52sf7816979wrb.1 for ; Mon, 01 May 2017 10:18:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=QOHuxCUTCHf/mqm944mGWjvihHlnGerRbVNAHS9xazo=; b=GYhD52YV2czCWmaYj4xpumLuoaz3jDy0YGL1XzdkUCdvqdzyPbEWCKsLCdMMq4cCuJ tamiob/XPxBTl5mejgpzA8XbapgdlgO5mjKCFF3XRAi1fihZqdw52ZCESglbjmoB2F1s qQDqn8fbZ4AKr3jQLqDepuZUnCGEWilrHLa7iAvRPO0yf2BLG1fPcvk5FeoSjvq4Hag/ 0dAiDJZ1LtJ+CTN/o1m+OD1nl1P6MBeHkYyAzEtBSCyf/y1wzy7g9AcqGQsKgtxsb9Pn udTpCNDN3CIgEI8vvEcMc+CHzd2HqKzr7TDE5fgmQ42/8KiQcb1h3Sp7XFQm6BIWQb56 bv7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:subject:message-id :references:mime-version:content-disposition:in-reply-to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=QOHuxCUTCHf/mqm944mGWjvihHlnGerRbVNAHS9xazo=; b=StF37C/z7y+CNgGmC6OMpDimfVhL0A3zwuLlwWqc6woIdiNYB3zN0BGriJl9oNjpd+ IFp+vKsQekn/MHNGrGmL5L+gxu7oJ2sFGogvD3scY8VJfZoMW9zcMwaXDQVr8yWbsk3Q uRX619uxcFP/tF/7BVjVyBfQBzdJx3sJXtL6Qa9NXVcy4iqyEKqw/8xqqUGP1dE71e7Y nlu2Tm1OaJUrXJpeAkB6ci/geVUvkbqlfo1nrA7w3wY6KSX9AH0P3XKuXYvShUpAljSf pvtRklvqCVPpgx3G5ALrU3hj7/M03dn6MoF48ojybl/BNu3u7hs7n1Y4ShfjxFcxX0SK xO Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AN3rC/6L/n/Eew/FRFskD5GKhmieQzxOgaxQsL2lVpIRVPlymB3IBz6S 0Hx63NWzpDQu+g== X-Received: by 10.46.92.72 with SMTP id q69mr57166ljb.11.1493659132888; Mon, 01 May 2017 10:18:52 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.25.79.93 with SMTP id a29ls360027lfk.25.gmail; Mon, 01 May 2017 10:18:51 -0700 (PDT) X-Received: by 10.46.33.217 with SMTP id h86mr2870441lji.23.1493659131200; Mon, 01 May 2017 10:18:51 -0700 (PDT) Original-Received: from stw1.rcdrun.com (stw1.rcdrun.com. [217.170.207.13]) by gmr-mx.google.com with ESMTPS id n4si620858wmf.2.2017.05.01.10.18.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 May 2017 10:18:51 -0700 (PDT) Received-SPF: pass (google.com: domain of support1-ZohPw8X7yHTQT0dZR+AlfA@public.gmane.org designates 217.170.207.13 as permitted sender) client-ip=217.170.207.13; Original-Received: from protected.rcdrun.com (localhost [::1]) (AUTH: PLAIN securesender, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by stw1.rcdrun.com with ESMTPSA; Mon, 01 May 2017 10:19:38 -0700 id 0000000000155562.0000000059076E2A.000017DF Original-Received: from localhost (localhost [127.0.0.1]) (uid 1001) by protected.rcdrun.com with local; Mon, 01 May 2017 20:14:17 +0300 id 0000000000123E8B.0000000059076CE9.00000A80 Content-Disposition: inline In-Reply-To: <01c43386-de61-d9c5-7db0-9e422e7aeddd-mxjLRozsjzA@public.gmane.org> X-Original-Sender: support1-ZohPw8X7yHTQT0dZR+AlfA@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of support1-ZohPw8X7yHTQT0dZR+AlfA@public.gmane.org designates 217.170.207.13 as permitted sender) smtp.mailfrom=support1-ZohPw8X7yHTQT0dZR+AlfA@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:17523 Archived-At: 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