emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christopher Witte <chris@witte.net.au>
To: Bastien <bzg@altern.org>
Cc: "Bernhard F.W. Gschaider" <bgschaid@gmail.com>,
	Org Mode <emacs-orgmode@gnu.org>
Subject: Re: 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	[thread overview]
Message-ID: <CAALnB3Ecge=-TzniMKNVJJQdvtcaRipqtq9g8q2Eiy7wVgUGZw@mail.gmail.com> (raw)
In-Reply-To: <87wqvqfs62.fsf@bzg.ath.cx>

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

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 <bzg@altern.org> wrote:

> Hi Bernhard,
>
> "Bernhard F.W. Gschaider" <bgschaid@gmail.com> 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
>
>

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

      reply	other threads:[~2013-01-07  8:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-18 17:49 Bug: Status of the org-mediawiki.el [7.8.11] Bernhard Gschaider
2012-10-24 13:43 ` Bastien
2013-01-06 11:26   ` Using Pandoc for export to EPub and Mediawiki " Bernhard F.W. Gschaider
2013-01-06 11:48     ` Bastien
2013-01-07  8:15       ` Christopher Witte [this message]

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='CAALnB3Ecge=-TzniMKNVJJQdvtcaRipqtq9g8q2Eiy7wVgUGZw@mail.gmail.com' \
    --to=chris@witte.net.au \
    --cc=bgschaid@gmail.com \
    --cc=bzg@altern.org \
    --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).