From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Denis_Bitouz=C3=A9?= 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: Mon, 14 Sep 2015 09:32:31 +0200 Message-ID: References: <8737yiuk62.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <8737yiuk62.fsf-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org> (Nicolas Goaziou's message of "Sun, 13 Sep 2015 22:41:09 +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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Le 13/09/15 =C3=A0 22h41, Nicolas Goaziou a =C3=A9= crit : > Hello, Hello, > dbitouze-39ZsbGIQGT5GWvitb5QawA@public.gmane.org (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. I agree. > 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. Well, please, don't trust me too quickly :) I must admit I'm very far from a mardown expert: I'm only a very occasional user. > In other words, both > > - Foo 1 > - Foo 2 > > A paragraph > > and > > - Foo 1 > - Foo 2: > - Foo 21 > - Foo 22 > End of Foo 2 item. > > are valid examples. Am I correct?=20 In fact, my suggestion was wrong: AFAICS, the last example doesn't give the expected HTML result neither and the less bad solution for nested lists in markdown seems to be: #+NAME: test.md #+begin_src markdown - Foo 1 - Foo 2: - Foo 21 - Foo 22 End of Foo 2 item. #+end_src which is interpreted as (rather ugly): #+begin_src html
  • Foo 1:

  • Foo 2:

    • Foo 21
    • Foo 22

    End of Foo 2 item.

#+end_src > Also, what about other block types, e.g., which one is valid: > > - Foo 1 > - Foo 2: > - Foo 21 > - Foo 22 > > #+begin_example > Some example > #+end_example > > or > > - Foo 1 > - Foo 2: > - Foo 21 > - Foo 22 > #+begin_example > Some example > #+end_example I'm not sure to understand what you have in mind: are these last two examples at org mode level? Regards, --=20 Denis