emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Using Pandoc for export to EPub and Mediawiki Re: Bug: Status of


From: Christopher Witte
Subject: Re: [O] Using Pandoc for export to EPub and Mediawiki Re: Bug: Status of the org-mediawiki.el [7.8.11]
Date: Mon, 7 Jan 2013 09:15:15 +0100

For a quick work around, Pandoc can read in HTML, so perhaps you can export org to HTML and then process it with Pandoc.
You can even use the following script so you can pipe it from the command line.

#!/usr/bin/emacs --script
;read stdin into a temp buffer
;go into org-mode
;output the buffer as a string and pipe to stdout
(with-temp-buffer
  (progn
    (condition-case nil
    (let (line)
      (while (setq line (read-from-minibuffer ""))
        (insert line)
        (insert "\n")))
      (error nil))
    (org-mode)
    (princ (org-export-as-html nil nil nil 'string))
    ))


Chris.


On 6 January 2013 12:48, Bastien <address@hidden> wrote:
Hi Bernhard,

"Bernhard F.W. Gschaider" <address@hidden> writes:

> If nobody is actively working on these export filters (Mediawiki) then
> maybe "outsourcing" this conversion to pandoc and "only" integrating the
> call into the "export menu" would be an interesting way to go

Yes.  If you can motivate someone either from this list or from Pandoc
community to write an Org mode reader, that'd be nice.  Even when we
finally have a mediawiki exporter.

Best,

--
 Bastien



reply via email to

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