From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/6792 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: A New Feature for Pandoc's Markdown Extension -- No Space with Newline Date: Mon, 15 Jul 2013 10:51:01 -0700 Message-ID: <20130715175101.GA20541@protagoras.phil.berkeley.edu> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1373910674 31996 80.91.229.3 (15 Jul 2013 17:51:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Jul 2013 17:51:14 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBEPNSCHQKGQE2GGLF2Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jul 15 19:51:16 2013 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pd0-f186.google.com ([209.85.192.186]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uymvb-00022c-8x for gtp-pandoc-discuss@m.gmane.org; Mon, 15 Jul 2013 19:51:15 +0200 Original-Received: by mail-pd0-f186.google.com with SMTP id 10sf3818672pdi.13 for ; Mon, 15 Jul 2013 10:51:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-beenthere:date:from:to:subject:message-id:references:mime-version :in-reply-to:x-pgp-key:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type:content-disposition; bh=YrDnzWKO69Mze9HElrqpg7MjqMvLHOFHhXACatTn1PM=; b=PIToA+/lU5L6nm8pbNOcaHsmvsaKNsSVDbha4imVF2cMb8S0/x/pTCkADfypNMkULC teSCMi1wCECMZHwqT0c4U0AX0xaEzAlVC3hnWANGDT0zhhoFzBdeBTpAOEzUEbSjj13U Z73CE0NQLQzorRWBTFq41xBk0V/kQdS7maG2acKEwLVAte4Cl3vk67IISag6vKuuy2HC JNynOke2U6Vocn/GZKqXp6HAHbE4NF/2/s2JzUm218pTuDdsMiRdtGoBVYYqqXxzYsDh x+NPSbXTb3RNu44LLYBo4mOHN648zliTIaZFMA3wSmg3r2SlAkFBYXP3QZAoN DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-beenthere:date:from:to:subject:message-id:references:mime-version :in-reply-to:x-pgp-key:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type:content-disposition; bh=YrDnzWKO69Mze9HElrqpg7MjqMvLHOFHhXACatTn1PM=; b=OGAo/iIl4oREtA9SvY3TSJlCFnBu9ZE+C1N8l8gFXeuMkptVCy3iVvjTeQXJ089hZq jYYQM2cIsxHZaPPDz/HY6f+6U0BEBcGLv2Usx5ZOHiB2NHiQlgmlqYBR3yQFfp1tu9yB UE3id7dVsrTTK0gFBaj/7NyZ8yObX+5vBsA2sqhkH6IfdzhhhTyMhbcdpHfSVPAPcN+z HfVxFpF7ooioQMMU9nynGEEY7dOb3GLLFyzhvltAGZoaRSvjeoBbp3b/6pJYDfreBCZl cRHmyB/o3N164K5jr0HUS+m2RowGKr9aRzCxdZJe/VHiMO7BJs2sBa+njkEQ3HO377N/ X-Received: by 10.50.40.65 with SMTP id v1mr934479igk.4.1373910673962; Mon, 15 Jul 2013 10:51:13 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.50.126.98 with SMTP id mx2ls1827544igb.39.canary; Mon, 15 Jul 2013 10:51:13 -0700 (PDT) X-Received: by 10.66.228.37 with SMTP id sf5mr3089201pac.42.1373910673096; Mon, 15 Jul 2013 10:51:13 -0700 (PDT) Original-Received: from cm04fe.IST.Berkeley.EDU (cm04fe.IST.Berkeley.EDU. [169.229.218.145]) by gmr-mx.google.com with ESMTPS id tr6si6884698pbc.1.2013.07.15.10.51.13 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 15 Jul 2013 10:51:13 -0700 (PDT) Received-SPF: neutral (google.com: 169.229.218.145 is neither permitted nor denied by best guess record for domain of jgm-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org) client-ip=169.229.218.145; Original-Received: from li55-134.members.linode.com ([74.82.3.134] helo=johnmacfarlane.net) by cm04fe.ist.berkeley.edu with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (auth plain:jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org) (envelope-from ) id 1UymvX-0004AY-FM for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Mon, 15 Jul 2013 10:51:12 -0700 Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 74B98BBBD3; Mon, 15 Jul 2013 13:51:01 -0400 (EDT) In-Reply-To: X-PGP-Key: http://johnmacfarlane.net/jgm.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 169.229.218.145 is neither permitted nor denied by best guess record for domain of jgm-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org) smtp.mail=jgm-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@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: Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Subscribe: , List-Unsubscribe: , Content-Disposition: inline Xref: news.gmane.org gmane.text.pandoc:6792 Archived-At: +++ Bill Chen (CHEN, Zhechuan) [Jul 15 13 17:16 ]: > Have found a way to make this feature done. > Just add "\n" at the last of the line This would violate the general rule that backslashes before letters in markdown are just literal backslashes. I think that a better approach would be to provide a markdown extension like the current 'hard_line_breaks': perhaps 'ignore_line_breaks'. 'hard_line_breaks' causes line breaks in a paragraph to be interpreted as hard breaks; 'ignore_line_breaks' would cause them to be ignored entirely. (One of these would have to be designated as taking precedence if both were selected.) John