From mboxrd@z Thu Jan 1 00:00:00 1970 From: stefano franchi Subject: How to get "clean" markdown export Date: Thu, 9 Mar 2017 11:44:01 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113f5780652eb3054a4fcaef Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cm26g-0000Ca-99 for emacs-orgmode@gnu.org; Thu, 09 Mar 2017 12:44:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cm26e-0000hD-Ll for emacs-orgmode@gnu.org; Thu, 09 Mar 2017 12:44:06 -0500 Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]:33201) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cm26e-0000gA-Ed for emacs-orgmode@gnu.org; Thu, 09 Mar 2017 12:44:04 -0500 Received: by mail-qk0-x229.google.com with SMTP id y76so130950089qkb.0 for ; Thu, 09 Mar 2017 09:44:03 -0800 (PST) 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" To: emacs-orgmode@gnu.org --001a113f5780652eb3054a4fcaef Content-Type: text/plain; charset=UTF-8 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: ------------------------------- \*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.franchi@gmail.com http://stefano.cleinias.org --001a113f5780652eb3054a4fcaef Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all,

I 'm just be= ginning with org-mode and I' trying to understand how to get a clean ex= port to markdown. By "clean" I mean: no extraneous html code shou= ld be inserted or interspersed with the markdown code. Using the installati= on-provided exporter, I get very different results, with a lot of extraneou= s stuff being exported. (See example below)
Apologies if this ques= tion has been asked before. Searching the manual and the list's archive= s did not provided any enlightenment.

Cheers,

Ste= fano

P.S. I am on emacs 25=C2=A0 and org-mode 9= .0.2 on archlinux, if that matters:


Example: th= is simple file from a tutorial:

------------------------------
*W= elcome 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.<= br>
* This is a headline, it starts with one or more stars

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

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


Produced this file when exported to markdown:
<= /div>


-------------------------------
<div id=3D"tab= le-of-contents">
<h2>Table of Contents</h2>
<d= iv id=3D"text-table-of-contents">
<ul>
<li>&= lt;a href=3D"#org1736896">1. This is a headline, it starts wit= h one or more stars</a></li>
<li><a href=3D"#o= rg26c7f46">2. Working with lists</a>
<ul>
<li&= gt;<a href=3D"#orgb68e966">2.1. Moving around in our outlin= e</a>
<ul>
<li><a href=3D"#orgc435d16"= >2.1.1. A level three headline</a></li>
</ul>
&l= t;/li>
<li><a href=3D"#org292de22">2.2. Moving = around headlines</a></li>
</ul>
</li>
<= /ul>
</div>
</div>
\*Welcome to org-mode

Wel= come, and thanks for trying out Org-mode. Making outlines in org is very si= mple. It is just text! Just start typing.


<a id=3D"org17= 36896"></a>

# This is a headline, it starts with one o= r more stars

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

=
<a id=3D"org26c7f46"></a>

# Working with l= ists


<a id=3D"orgb68e966"></a>

## M= oving around in our outline


<a id=3D"orgc435d16">= ;</a>

### A level three headline


<a id=3D"o= rg292de22"></a>

## Moving around headlines


= --
__________________________________________________<= br>Stefano Franchi

stefano.franchi@gmail.com
http://stefano.cleinias.org
<= /div>
--001a113f5780652eb3054a4fcaef--