emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Markdown exporter deletes a line before a list
@ 2014-08-15  3:56 Rafael
  2014-08-16 14:30 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Rafael @ 2014-08-15  3:56 UTC (permalink / raw)
  To: Emacs-orgmode list


I'm not sure if this is a feature or a bug. Consider this org file:

#+BEGIN_SRC org
  ,* A test
    - one
    - two

  ,* Another test

    Consider this list:

    - three
    - four
#+END_SRC

Using the markdown exporter, this exports to (after the toc):

#+BEGIN_EXAMPLE
  # A test<a id="sec-1"></a>

  -   one
  -   two

  # Another test<a id="sec-2"></a>

  Consider this list:
  -   three
  -   four
#+END_EXAMPLE

That is, if the list follows a heading, a blank line is added, which is
OK. But if there is text between the heading and the list, the blank
line is deleted, which is definitely not OK to me.

If this is a feature, I would appreciate some guidance to have the
markdown exporter to preserve a blank line before lists. 

I tried the test with org just pulled from git, and emacs -Q -l, as
described in the manual.

Thanks for any advice, 
Rafael

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Markdown exporter deletes a line before a list
  2014-08-15  3:56 Markdown exporter deletes a line before a list Rafael
@ 2014-08-16 14:30 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2014-08-16 14:30 UTC (permalink / raw)
  To: Rafael; +Cc: Emacs-orgmode list

Hello,

Rafael <rvf0068@gmail.com> writes:

> I'm not sure if this is a feature or a bug. Consider this org file:
>
> #+BEGIN_SRC org
>   ,* A test
>     - one
>     - two
>
>   ,* Another test
>
>     Consider this list:
>
>     - three
>     - four
> #+END_SRC
>
> Using the markdown exporter, this exports to (after the toc):
>
> #+BEGIN_EXAMPLE
>   # A test<a id="sec-1"></a>
>
>   -   one
>   -   two
>
>   # Another test<a id="sec-2"></a>
>
>   Consider this list:
>   -   three
>   -   four
> #+END_EXAMPLE
>
> That is, if the list follows a heading, a blank line is added, which is
> OK. But if there is text between the heading and the list, the blank
> line is deleted, which is definitely not OK to me.

I pushed a fix in maint. Thank you for reporting it.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-16 14:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-15  3:56 Markdown exporter deletes a line before a list Rafael
2014-08-16 14:30 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).