Re: [O] Using Pandoc for export to EPub and Mediawiki Re: Bug: Status of the org-mediawiki.el [7.8.11]
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 b...@altern.org wrote: Hi Bernhard, Bernhard F.W. Gschaider bgsch...@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
[O] Using Pandoc for export to EPub and Mediawiki Re: Bug: Status of the org-mediawiki.el [7.8.11]
Hi all! Am 24.10.12 15:43, schrieb Bastien: Hi Bernhard, Bernhard Gschaider bgsch...@gmail.com writes: May question: Is the support for Mediawiki-export abandoned? For now, yes. But I think it would be a nice format to export to. Just one question: does this HAVE to be implemented in org-mode/elisp itself? I just stumbled on Pandoc http://johnmacfarlane.net/pandoc/README.html which can export from several markup-languages to for instance MediaWiki (what I think is weird is that it accepts org-mode as an output, but not as an input). So one only has to write an org-reader and get the project to accept it and then there would be a number of output-formats (including ePub which would be VERY cool) available for free (some duplicate existing formats). I know that the only part is the hard thing. But there seems to be somebody working on this already https://github.com/jgm/pandoc/issues/476 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 Bernhard If yes: I'd suggest to remove the reference to it from http://orgmode.org/worg/org-contrib/ Done, thanks!
Re: [O] Using Pandoc for export to EPub and Mediawiki Re: Bug: Status of the org-mediawiki.el [7.8.11]
Hi Bernhard, Bernhard F.W. Gschaider bgsch...@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