From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Extra blank line in subitem list when exported to markdown [8.3.1 (8.3.1-103-g366dc4-elpa @ /home/bitouze/.emacs.d/elpa/org-20150907/)] Date: Sun, 13 Sep 2015 22:41:09 +0200 Message-ID: <8737yiuk62.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbE3h-0003xX-6J for emacs-orgmode@gnu.org; Sun, 13 Sep 2015 16:39:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbE3g-0005Qe-4H for emacs-orgmode@gnu.org; Sun, 13 Sep 2015 16:39:33 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:57706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbE3f-0005QK-T4 for emacs-orgmode@gnu.org; Sun, 13 Sep 2015 16:39:32 -0400 In-Reply-To: ("Denis \=\?utf-8\?Q\?Bitouz\?\= \=\?utf-8\?Q\?\=C3\=A9\=22's\?\= message of "Sat, 12 Sep 2015 16:57:49 +0200") 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: Denis =?utf-8?Q?Bitouz=C3=A9?= Cc: emacs-orgmode@gnu.org Hello, dbitouze@wanadoo.fr (Denis Bitouz=C3=A9) writes: > When exported to markdown, an extra blank line is added in subitem > lists, as shown by the following minimal example. > > #+NAME: test.org > #+begin_src org > - Foo 1 > - Foo2: > - Foo21 > - Foo22 > End of Foo2 item. > #+end_src > > *Expected* behavior (note the *absence* of blank line after =3DFoo22=3D): > > #+NAME: test-ok.md > #+begin_src markdown > - Foo 1 > - Foo2: > - Foo21 > - Foo22 > End of Foo2 item. > #+end_src > > *Current* behavior (note the blank line after =3DFoo22=3D): > > #+NAME: test.md > #+begin_src markdown > - Foo 1 > - Foo2: > - Foo21 > - Foo22 >=20=20=20=20=20 > End of Foo2 item. > #+end_src Well, the rules governing blank lines in Mardown are mysterious to me. They are also, AFAIK, totally undocumented. Anyway, you are suggesting to remove any blank line before paragraphs following a plain list, but only when they are already contained within a list. In other words, both - Foo 1 - Foo 2 A paragraph and - Foo 1 - Foo 2: - Foo 21 - Foo 22 End of Foo2 item. are valid examples. Am I correct?=20 Also, what about other block types, e.g., which one is valid: - Foo 1 - Foo2: - Foo 21 - Foo 22 #+begin_example Some example #+end_example or - Foo 1 - Foo2: - Foo 21 - Foo 22 #+begin_example Some example #+end_example ? Regards, --=20 Nicolas Goaziou