From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Sexton Subject: Markdown export (using org-export-generic) Date: Wed, 17 Aug 2011 02:20:36 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtVof-0005JS-6R for emacs-orgmode@gnu.org; Tue, 16 Aug 2011 22:25:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtVod-000865-Rl for emacs-orgmode@gnu.org; Tue, 16 Aug 2011 22:25:13 -0400 Received: from lo.gmane.org ([80.91.229.12]:45581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtVod-00085v-Ar for emacs-orgmode@gnu.org; Tue, 16 Aug 2011 22:25:11 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QtVoW-0003SD-7D for emacs-orgmode@gnu.org; Wed, 17 Aug 2011 04:25:08 +0200 Received: from rp.young.med.auckland.ac.nz ([130.216.140.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Aug 2011 04:25:04 +0200 Received: from psexton.2a by rp.young.med.auckland.ac.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Aug 2011 04:25:04 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Wes Hardaker's org-export-generic (in worg) does a pretty good job of exporting to markdown syntax. The following works (use C-c C-e g to run the exporter): (require 'org-export-generic) (org-set-generic-type "markdown" '(:file-suffix ".markdown" :key-binding ?M :title-format "Title: %s\n" :date-format "Date: %s\n" :toc-export nil :author-export t :tags-export nil :drawers-export nil :date-export t :timestamps-export t :priorities-export nil :todo-keywords-export t :body-line-fixed-format "\t%s\n" ;:body-list-prefix "\n" :body-list-format "- %s" :body-list-suffix "\n" :header-prefix ("" "" "### " "#### " "##### " "###### ") :body-section-header-prefix ("" "" "### " "#### " "##### " "###### ") :body-section-header-format "%s\n" :body-section-header-suffix (?= ?- "") :body-header-section-numbers nil :body-header-section-number-format "%s) " :body-line-format "%s\n" :body-newline-paragraph "\n" :bold-format "**%s**" :italic-format "_%s_" :verbatim-format "`%s`" :code-format "`%s`" :body-line-wrap 75 )) There are some defects however, which an't really be fixed without altering the exporter code. The main ones are: 1. Nested lists don't seem to be supported. 2. Tables come out as: col 1 col 2 -------+------- 1 2 3 4 But need to look like this: |col 1 | col 2 | |-------|-------| | 1 | 2| | 3 | 4| 3. Links are not exported correctly. A link [[http://www.google.com][like this]] comes out as A link [like this] ... [like this]: http://www.google.com But need to look either like: A link [like this][1] ... [1]: http://www.google.com Or like: A link [like this](http://www.google.com) Paul