emacs-orgmode
[Top][All Lists]
Advanced

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

[O] How to get "clean" markdown export


From: stefano franchi
Subject: [O] How to get "clean" markdown export
Date: Thu, 9 Mar 2017 11:44:01 -0600

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:


-------------------------------
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="" This is a headline, it starts with one or more stars</a></li>
<li><a href="" Working with lists</a>
<ul>
<li><a href="" Moving around in our outline</a>
<ul>
<li><a href="" A level three headline</a></li>
</ul>
</li>
<li><a href="" Moving around headlines</a></li>
</ul>
</li>
</ul>
</div>
</div>
\*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.


<a id="org1736896"></a>

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

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


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

# Working with lists


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

## Moving around in our outline


<a id="orgc435d16"></a>

### A level three headline


<a id="org292de22"></a>

## Moving around headlines


--
__________________________________________________
Stefano Franchi

address@hidden
http://stefano.cleinias.org

reply via email to

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