From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18144 Path: news.gmane.org!.POSTED!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Markdown -> plain: How to preserve blockquotes? Date: Tue, 5 Sep 2017 11:17:33 -0700 Message-ID: <20170905181733.GD10851@Johns-MacBook-Pro.local> References: <8e1e0a64-7e87-4dbd-b669-0b55854fe110@googlegroups.com> <20170905045318.GE3765@Johns-MacBook-Pro.local> <6ec4d317-8de4-476d-86c5-91438eb47729@googlegroups.com> <9d2b4cdb-b236-42bd-baea-ff53da0ca1ed@googlegroups.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"; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1504635486 17136 195.159.176.226 (5 Sep 2017 18:18:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 5 Sep 2017 18:18:06 +0000 (UTC) User-Agent: Mutt/1.6.2 (2016-07-01) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBPGUXPGQKGQEBFNRUZI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 05 20:17:48 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-it0-f64.google.com ([209.85.214.64]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpIPd-0002iM-I9 for gtp-pandoc-discuss@m.gmane.org; Tue, 05 Sep 2017 20:17:25 +0200 Original-Received: by mail-it0-f64.google.com with SMTP id c195sf1555245itb.4 for ; Tue, 05 Sep 2017 11:17:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1504635452; cv=pass; d=google.com; s=arc-20160816; b=jzP3hHBIFQqMM3VYp6v0b/TTuV2xAvYCnJO7vIkJFXFXIesiqwfDgmzCQ5bhtYh5yi NyJcVy/oQsJ5tRB1pdPYMW7iSSbJhpMiY7SqdJV4LDN1Rr6AlverZgfbJCt/5YMnwJ9J Y/YQvCQb7L4NuInvg31FjMozq1FBhdbAEFnx3rKMhsTfIBC4r26QxH4cAN+RNE7Hdjb6 uwGIUPZ85fIrJ9HolBDPp3yrkR5PKN5HCxzCPTcSDth4OnmhjeGG12AEO26gGJfiHMrA tkAM9qA9/8s5AomwtieEybSLViw9jltlVRN2a1ibXIIYA9ubQd1PbZ2L0xhGtzkrkn9t Zszw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:date:from :arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=jpr5YB19TQftmiCbAbwXWrY/R2OK2vlBAOCLD6Gj43w=; b=sKQOvA6fR170QrRRGe0kNiWP4Bjk4RlplM80sZOrZgSDHPWc/zM+s57MvBnqKeh+UK 9HaqQATnLDmxWjs3n0KFqPHhpM2He5wlq1kIKCWWkwS6tI0No9XigerStp4/aGXj3POD HCEzFmLnMWgWyWOSJPDurpqyp6islTrFBZaXE5m1HlBIs4iLjOtq2P7YSbkDCzH7fH83 AcH0Qn8eu4Fe92tWwnJDUbDbT4M9u6isko+iLSYK1LEpB/tFlQBTIZnfs3LBozNgQE4+ nhjDcuw1Q5V5ciAbW6EaBxmN+D/PY/ZQMGBFdOVdJi ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=X8drrlwf; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:date:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=jpr5YB19TQftmiCbAbwXWrY/R2OK2vlBAOCLD6Gj43w=; b=RZ9k3myD6qzhEbwPqHzAIEpAxs6FcW/8hvrvdDcQNuCdTidTfbNtEVi09egHzfjs8n qfOo6AssH27r5s+iJvaS4ZF37Rlza189DOCbmy0NxoF7G6USr2dcRvnanSC+japnZMK4 jwQrfEe/xgci7Caiuw0oSHA7BdEluBzj1a5QBekQUO8QZDOm+YTv2e9CyKVP+E5ZQO76 RM0gHz2Ku21IS28kLGJzySnioJ0/+yV9G0vvm7e7Xt7F2EA9K2wjeR7i1otYcAl7T5mY BWuGV3vYPe/dWYOl1GfxEvur7nn+q8piz1HgsBvm+ELy7X2/tCIke1uTjpolHZJuX2sI dvWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent: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=jpr5YB19TQftmiCbAbwXWrY/R2OK2vlBAOCLD6Gj43w=; b=tUxbvedk7iX9655bGTxE0fvlnYdpWISmBqKpKd+JMkjgDQBEm9XjqH1M1aLtMbZ9r6 HoZhGPmwL82Uu7qxGKnGY5fOip1JCmKknqzGfxsXTx2uDGvAwoT1payIxmjDpfpcYJiK 4wU279Jj4jeUhOjGKB2WOg9Asma22MXiInI7nWX57rDVslqGR8TjLCpSufvpkrB3kHFk g5Y6LlY5TvvitcoLuZQog4/IlpxAU3B4Yf3JjoR2odKC0XWIGkj3BHvc5ibN9kX2IqaQ Wzjz44ua7yFUQ4vmZjgCsoYVf6gORGBmj Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AHPjjUicPtE3fnIG5nPGl3+XTeCkTY6hy43cTV4xIFu9zEBFxXrnrXb4 55EpZwkrw5GLbg== X-Google-Smtp-Source: ADKCNb4791boj1BxRVIJ98KBLVqpGi4T8uURptTO/chPtVWOJTk0El/ckaqmKE9pwgx4wjSEzRJQSw== X-Received: by 10.36.125.198 with SMTP id b189mr185767itc.6.1504635452672; Tue, 05 Sep 2017 11:17:32 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.52.213 with SMTP id b204ls2784928ioa.37.gmail; Tue, 05 Sep 2017 11:17:31 -0700 (PDT) X-Received: by 10.98.95.197 with SMTP id t188mr3001627pfb.36.1504635451839; Tue, 05 Sep 2017 11:17:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504635451; cv=none; d=google.com; s=arc-20160816; b=S806iuebciq/8ARdbGnhLNGpm9AY9LuWkBBRfnG1I3kevFxlkja9SjK65sgB+QyRBI GQqgn6fdNBLIbnO2e/lBCICcXX3GKIXH+L6wPmDUZQyPBa8RHLyNh7AhySMBsfBjKU1C JIaQxVCUpc83o5E0nfcu+tR8KMxNldsHIU24/8Bt5zj669fjy4KPu+h2iQTfwoGLu8rO ER38YElB255WRprJCLvCjiPvrenJNA6S6xsqAWbCQm22P5UCmDOnKRn5xEKqzLMPMSDy BSrxsO4tBwWR3c4lWv7/ppclR3fwXVDoC0i7a8WNw4Kr/5ydg3acInyXAYvodmSqmR+Y k1VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:to :date:from:dkim-signature:arc-authentication-results; bh=2bkZjr9NvkcC5p1OYrO10SQV4xkxSHnS9teYSC2quwY=; b=fxfHoZT1UyJg98sYjxas2vessXtqLwIK9/b6maPCjRptk9d/vmFa8UA7IvdFsfbGUm sGyaqeK+if7eCVlF7vsm9xBZvJOYfebg9dgh0OmOVYOPn+AE9uQhxrFwV7ZRqqmGSQ9a mCCSx75wqJEcJMRGGFi9Y3lWVi5NZU7bNdIkVuGw8d3ZVvyyblTE+b3g9yS/Y0PAZHii q+NKzZbBMiouwgmF3tdxqCGvbQG+i1HglHdKzmhmTSgvyQmmTIa4Jx7YhNeILy+WE71e KuAQrkEQgKw5RKojJsp5KzJVtR2xBZS/jC2LJNhbjOXOsyVV7B7AD20pcZ/ur8Ib5w5o i9nA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=X8drrlwf; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg0-x22e.google.com (mail-pg0-x22e.google.com. [2607:f8b0:400e:c05::22e]) by gmr-mx.google.com with ESMTPS id a12si122163pfd.2.2017.09.05.11.17.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Sep 2017 11:17:31 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22e as permitted sender) client-ip=2607:f8b0:400e:c05::22e; Original-Received: by mail-pg0-x22e.google.com with SMTP id v66so10736484pgb.5 for ; Tue, 05 Sep 2017 11:17:31 -0700 (PDT) X-Received: by 10.99.126.84 with SMTP id o20mr4950027pgn.137.1504635451259; Tue, 05 Sep 2017 11:17:31 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id x189sm1797646pfx.188.2017.09.05.11.17.29 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Sep 2017 11:17:29 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 1C627A1C5; Tue, 5 Sep 2017 14:17:19 -0400 (EDT) Content-Disposition: inline In-Reply-To: <9d2b4cdb-b236-42bd-baea-ff53da0ca1ed-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-PGP-Key: http://johnmacfarlane.net/jgm.asc X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=X8drrlwf; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:18144 Archived-At: You might have some success with filters. You could use Markdown output, and intercept constructions like Strong and Emph, replacing them with something else. +++ Francisco Lopes [Sep 05 17 11:02 ]: > Em ter=C3=A7a-feira, 5 de setembro de 2017 09:16:41 UTC-3, Kolen Cheung > escreveu: > > As I guessed you don't really want to have plaintext. Again, try > turning off markdown extensions to make it more "lightweight" and > tailor that as your "plaintext". > > The problem is that turning off markdown extensions to achieve plain > text will simply not work afaik. > For example, current plain text output will turn bold markdown **text** > to all caps plain TEXT. Which I find nice, > I find it logical for plain text output. Can't it be done by turning > off flags? > The thing is that what I want has no standard yet, it's something > target for plain text EML, between current plain > text and markdown. IMO, **foo** etc, clutters plain text output. > Another possible feature of such target output > could be to always move url links to footer while leaving anchors in > the main content. > Regards > > Regarding treating list marker as plaintext or not: we need to ask > ourselves what do we mean when we say plaintext and markdown. In the > "markdown wins the plaintext war" camp, markdown is plaintext. Just > to look up wikipedia in <[1]https://en.m.wikipedia.org/ > wiki/Plain_text>, non-binary formats are plaintext, like most of the > pandoc formats including HTML. So pandoc's plain format definitely > has a special meaning than these. And @jgm just defined it above. > Lastly, when I say the list marker isn't plaintext, I'm thinking in > terms of "stringify". Like if given a document, if I'm to remove > every formatting features, what would I be left with? Or in other > words, if I speak it out without any help from those markups, what > would that be? In this sense, a list in *plain* text is like "Give > me a pen, pencil, and ruler." By the way, I think in typography, > when you write that in a list (with list markers), the rule to apply > punctuation marks and connectives is exactly as if you write it out > in a sentence. i.e. the list marker is just a visual element to > better represent the information. > > -- > 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 [2]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to > [3]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > [4]https://groups.google.com/d/msgid/pandoc-discuss/9d2b4cdb-b236-42bd- > baea-ff53da0ca1ed%40googlegroups.com. > For more options, visit [5]https://groups.google.com/d/optout. > >References > > 1. https://en.m.wikipedia.org/wiki/Plain_text > 2. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 3. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 4. https://groups.google.com/d/msgid/pandoc-discuss/9d2b4cdb-b236-42bd-= baea-ff53da0ca1ed-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=3Demail&utm_source=3Dfooter > 5. https://groups.google.com/d/optout --=20 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 e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/20170905181733.GD10851%40Johns-MacBook-Pro.local. For more options, visit https://groups.google.com/d/optout.