Re: [O] How to get "clean" markdown export

2017-03-09 Thread stefano franchi
On Thu, Mar 9, 2017 at 12:30 PM, Eric S Fraga <e.fr...@ucl.ac.uk> wrote:

> On Thursday,  9 Mar 2017 at 17:44, stefano franchi wrote:
> > Hi all,
> >
> > I 'm just beginning with org-mode and I' trying to understand how to
> > get a clean export to markdown. By "clean" I mean: no extraneous html
>
> Just tested what I suggested and, actually, adding
>
> #+options: toc:nil
>
> removes all the cruft you don't want!
>
>

Indeed! Thanks a lot, problem solved.



Cheers,

S.


-- 
__
Stefano Franchi

stefano.fran...@gmail.com <stef...@tamu.edu>
http://stefano.cleinias.org


[O] How to get "clean" markdown export

2017-03-09 Thread stefano franchi
Hi all,

I 'm just beginning with org-mode and I' trying to understand how to get a
clean export to markdown. By "clean" I mean: no extraneous html code should
be inserted or interspersed with the markdown code. Using the
installation-provided exporter, I get very different results, with a lot of
extraneous stuff being exported. (See example below)
Apologies if this question has been asked before. Searching the manual and
the list's archives did not provided any enlightenment.

Cheers,

Stefano

P.S. I am on emacs 25  and org-mode 9.0.2 on archlinux, if that matters:


Example: this simple file from a tutorial:

--
*Welcome to org-mode


Welcome, and thanks for trying out Org-mode. Making outlines in org is very
simple. It is just text! Just start typing.

* This is a headline, it starts with one or more stars

A heading has one star, a sub-heading two, etc.

* Working with lists
** Moving around in our outline
*** A level three headline
** Moving around headlines
--


Produced this file when exported to markdown:


---

Table of Contents


1. This is a headline, it starts with one or more
stars
2. Working with lists

2.1. Moving around in our outline

2.1.1. A level three headline


2.2. Moving around headlines





\*Welcome to org-mode

Welcome, and thanks for trying out Org-mode. Making outlines in org is very
simple. It is just text! Just start typing.




# This is a headline, it starts with one or more stars

A heading has one star, a sub-heading two, etc.




# Working with lists




## Moving around in our outline




### A level three headline




## Moving around headlines


-- 
______
Stefano Franchi

stefano.fran...@gmail.com <stef...@tamu.edu>
http://stefano.cleinias.org