From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/17533 Path: news.gmane.org!.POSTED!not-for-mail From: support1-ZohPw8X7yHTQT0dZR+AlfA@public.gmane.org Newsgroups: gmane.text.pandoc Subject: Re: Markdown for AMP Project https://www.ampproject.org/ Date: Wed, 3 May 2017 00:24:20 +0300 Message-ID: <20170502212420.GB3957@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> <20170501171417.GA2499@protected.rcdrun.com> 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 1493760536 25060 195.159.176.226 (2 May 2017 21:28:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 2 May 2017 21:28:56 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDT3JGEATELRBGHUUPEAKGQEPIQ5CLQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue May 02 23:28:51 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-wr0-f183.google.com ([209.85.128.183]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d5fLn-0006Sc-84 for gtp-pandoc-discuss@m.gmane.org; Tue, 02 May 2017 23:28:51 +0200 Original-Received: by mail-wr0-f183.google.com with SMTP id o52sf10659732wrb.1 for ; Tue, 02 May 2017 14:28:57 -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=HAQ5iJ9tonPpAggQu6QOXRDooAD408dqWplgcoFb+Ys=; b=FykeYKO7nkN5CpAifSTaMr6PbeTNd1Sc2u9HWrtUaEdzDYhTpCBZtn2xLTQQxtwB5F Y+1uaur+Q5/52mLhCT4vZ8Ns34HLRdhlBRHukzNmN5jLoyeTVUdeNWFZ9QF2+f0Epq8p P8VV+/N1L2OghoJE5EnMci9vk72KVMlaV7Kcd965ZYo4uj9j8yoDpwN4fW+jQojp8aLe 9y8x/w23N6hczMHx0p7UL62pQvkKImUg67/87+XHV7L8fJVpcVrQy7gmMfDzwacTDkg3 +6rUmRrkuKLefuSBCvRTpLdGLPm19gN3PUO4gZ6LE7PLl6UKeZ0h6L1HQuKLgxojrbx4 AAgg== 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=HAQ5iJ9tonPpAggQu6QOXRDooAD408dqWplgcoFb+Ys=; b=pKlyKctIO9MSGb5AerjnK5fj0WJr65igpw/1t+Bmd205yI7IJrQQXIsWnHY+YFtnn2 2vEPm50wpyGnHdb9pnNmt92OGPIDecVvjMK/12/YtqGr2kc3BkQXRUrr4z/lzye/x9qL R9ngYFnD47udv+gnFzwO5HWYIx2OWiTHNBZ5FptG1+x/6kG+5zFU3fx98Mbz4ibVSnN6 6Bz0KwaF2tMjHGnTZYFc7W7FRO1isBfI89HyviKyY+F/6dBLuAPWZG8Kt/YHuOuNyIEj DzkQKqNpdlAXWT3F7db7aqLU08a4P6y93jiaiMEuwHvlqnavCVyVeVbj9mXJk7x/pnr0 WZ Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AN3rC/5Bob2pHirPHh6C3Dk+TStwkH2lnR2uo96XnWq+S9y6KZYvTIwh B0ZH/8+w0ZObgg== X-Received: by 10.28.156.197 with SMTP id f188mr6491wme.21.1493760537220; Tue, 02 May 2017 14:28:57 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.28.19.70 with SMTP id 67ls40309wmt.20.gmail; Tue, 02 May 2017 14:28:56 -0700 (PDT) X-Received: by 10.28.46.207 with SMTP id u198mr309620wmu.11.1493760536339; Tue, 02 May 2017 14:28:56 -0700 (PDT) Original-Received: from stw1.rcdrun.com (stw1.rcdrun.com. [217.170.207.13]) by gmr-mx.google.com with ESMTPS id b84si239721wmh.2.2017.05.02.14.28.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 May 2017 14:28:56 -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; Tue, 02 May 2017 14:29:43 -0700 id 00000000001654DC.000000005908FA48.0000446B Original-Received: from localhost (localhost [127.0.0.1]) (uid 1001) by protected.rcdrun.com with local; Wed, 03 May 2017 00:24:20 +0300 id 0000000000123E8C.000000005908F904.0000290E Content-Disposition: inline In-Reply-To: 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:17533 Archived-At: On Tue, May 02, 2017 at 02:09:50PM -0700, mb21 wrote: > @Jean, you know you can specify image sizes in pandoc as well, right? see > http://pandoc.org/MANUAL.html#images I see that, it is nice usable tool and I use it. I also use Pandoc to convert HTML to text, at least temporarily, as it may show HTTP links within the text body, which is nice feature. Before I was using elinks browser with --dump option, and links appear then on the bottom of the page. However, it is not as good for my production and the website revision system with hundreds (thousands) of markdown pages, as it is too slow. If I add AMP pages, that means there is double number of pages to process. Pandoc is not thinkable for the large work, after short review and stupid benchmark below. time lisp -x '(loop for i from 1 to 1000 do (shell "pandoc -f markdown -t html tmp/benchmark.md > /dev/null" ))' NIL real 2m30.604s user 2m13.572s sys 0m10.972s time lisp -x '(loop for i from 1 to 1000 do (shell "discount_markdown tmp/benchmark.md > /dev/null" ))' NIL real 0m6.388s user 0m0.060s sys 0m0.056s the difference should be very obvious. Discount markdown is way better for markdown, while Pandoc is way better for general purpose conversions and is too slow for huge collection of markdown pages. Discount markdown: www.pell.portland.or.us/~orc/Code/discount/ Jean