From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: [PATCH] md backend needs to add blank line before some lists Date: Sun, 2 Nov 2014 13:41:25 -0800 Message-ID: Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1690234737-1414963433=:1632" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl2tz-0003mj-0y for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 16:41:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xl2ts-0002y4-Qw for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 16:41:34 -0500 Received: from iport-bcv1-out.ucsd.edu ([132.239.0.119]:42319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl2ts-0002xp-At for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 16:41:28 -0500 Content-ID: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1690234737-1414963433=:1632 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; format=flowed Content-ID: John Hendy pointed out [1] that list - item1 - item2 Isn't the same as this: list - item1 - item2 when exported using the `md' backend (or its derivatives). But it needs to be to generate a proper document (at least with engines like pandoc.) The attached patch enables this by adding a blank line after a `paragraph', but before a `plain-list' as long as the `paragraph' is not itself inside a list. In other words, with the patch, the `md' export renders both lists with a blank line after the preceeding paragraph. HTH, Chuck p.s. I have assigned copyright to FSF as `Charles Chester Berry' on Sept 23, 2014 (RT: 945490). Footnote [1]: http://thread.gmane.org/gmane.emacs.orgmode/92289 --0-1690234737-1414963433=:1632 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=0001-lisp-ox-md.el-Fix-lists-following-paragraphs.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: ox-md.el patch Content-Disposition: ATTACHMENT; FILENAME=0001-lisp-ox-md.el-Fix-lists-following-paragraphs.patch RnJvbSA4ZTgyZGJiMjMxMDllMmJmMTMyODFkM2Y5MjliZGRkYjkwOTZkMTNk IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogY2hhc2JlcnJ5IDxj Y2JlcnJ5QHVjc2QuZWR1Pg0KRGF0ZTogU3VuLCAyIE5vdiAyMDE0IDEzOjE2 OjU1IC0wODAwDQpTdWJqZWN0OiBbUEFUQ0hdIGxpc3Avb3gtbWQuZWw6IEZp eCBsaXN0cyBmb2xsb3dpbmcgcGFyYWdyYXBocw0KDQoqIGxpc3Avb3gtbWQu ZWwgKG9yZy1tZC1zZXBhcmF0ZS1lbGVtZW50cyk6IEFkZCBhIGxpbmUgYWZ0 ZXIgYQ0KICBwYXJhZ3JhcGggdGhhdCBwcmVjZWVkcyBhIGxpc3QsIGJ1dCBp cyBub3QgaXRzZWxmIGNvbnRhaW5lZCBpbiBhDQogIGxpc3QuDQoNCiAgTWFy a2Rvd24gbmVlZHMgYSBibGFuayBsaW5lIGZvbGxvd2luZyBhIHBhcmFncmFw aCB0byB1bmRlcnN0YW5kIHRoYXQNCiAgYSBsaXN0IHJlYWxseSBpcyBhIGxp c3QuIEhvd2V2ZXIsIG5lc3RlZCBsaXN0cyBkbyBub3QgbmVlZCB0aGlzIGFu ZA0KICBhZGRpbmcgdGhlIGJsYW5rIGxpbmUgd291bGQgcmVzdWx0IGluIGV4 dHJhIHdoaXRlc3BhY2Ugd2hlbg0KICBmb3JtYXR0ZWQgZm9yIGRpc3BsYXku DQotLS0NCiBsaXNwL294LW1kLmVsIHwgOSArKysrKysrKy0NCiAxIGZpbGUg Y2hhbmdlZCwgOCBpbnNlcnRpb25zK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