emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: stefano franchi <stefano.franchi@gmail.com>
To: emacs-orgmode@gnu.org
Subject: How to get "clean" markdown export
Date: Thu, 9 Mar 2017 11:44:01 -0600	[thread overview]
Message-ID: <CAJODLwbj1nWL-Fp-r0bN=KNG5MDmZAOCMd7MUo_p9NjVh4o5Tw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2241 bytes --]

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="#org1736896">1. This is a headline, it starts with one or more
stars</a></li>
<li><a href="#org26c7f46">2. Working with lists</a>
<ul>
<li><a href="#orgb68e966">2.1. Moving around in our outline</a>
<ul>
<li><a href="#orgc435d16">2.1.1. A level three headline</a></li>
</ul>
</li>
<li><a href="#org292de22">2.2. 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

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

[-- Attachment #2: Type: text/html, Size: 3315 bytes --]

             reply	other threads:[~2017-03-09 17:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-09 17:44 stefano franchi [this message]
     [not found] <dab02a661af34644b46246817e633d96@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-03-09 18:28 ` How to get "clean" markdown export Eric S Fraga
2017-03-09 18:30 ` Eric S Fraga
2017-03-09 18:32   ` stefano franchi
2017-03-11 14:24     ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJODLwbj1nWL-Fp-r0bN=KNG5MDmZAOCMd7MUo_p9NjVh4o5Tw@mail.gmail.com' \
    --to=stefano.franchi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).