emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Bug: Extra blank line in subitem list when exported to markdown


From: Nicolas Goaziou
Subject: Re: [O] 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

Hello,

address@hidden (Denis Bitouzé) 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 =Foo22=):
>
> #+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 =Foo22=):
>
> #+NAME: test.md
> #+begin_src markdown
> -   Foo 1
> -   Foo2:
>     -   Foo21
>     -   Foo22
>     
>     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? 

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,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]