From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lawrence Subject: Re: problem with ox-pandoc export Date: Fri, 03 Jul 2015 09:37:38 -0700 Message-ID: <87si95tcx9.fsf@berkeley.edu> References: <87a8vmv5vq.fsf@nicolasgoaziou.fr> <87pp4htpk1.fsf@nicolasgoaziou.fr> <878ub2k8pq.fsf@nicolasgoaziou.fr> <874mlqjqfk.fsf@nicolasgoaziou.fr> <87mvzg827w.fsf@nicolasgoaziou.fr> <86k2uioquy.fsf@example.com> <87ioa2n68f.fsf@nicolasgoaziou.fr> <877fqisr7f.fsf@gmx.us> <87bnfuutyv.fsf@nicolasgoaziou.fr> <874mlm42ft.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZB3yU-0003zu-3H for emacs-orgmode@gnu.org; Fri, 03 Jul 2015 12:38:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZB3yP-0003fk-Uy for emacs-orgmode@gnu.org; Fri, 03 Jul 2015 12:38:02 -0400 Received: from plane.gmane.org ([80.91.229.3]:37555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZB3yP-0003es-OI for emacs-orgmode@gnu.org; Fri, 03 Jul 2015 12:37:57 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZB3yO-00059m-GD for emacs-orgmode@gnu.org; Fri, 03 Jul 2015 18:37:56 +0200 Received: from c-67-169-117-151.hsd1.ca.comcast.net ([67.169.117.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Jul 2015 18:37:56 +0200 Received: from richard.lawrence by c-67-169-117-151.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Jul 2015 18:37:56 +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 Rasmus writes: > I don't see it as reinventing the wheel. One example, does pandoc have > something like the ox filters? It does; see e.g. http://pandoc.org/scripting.html Pandoc filters are actually more powerful than Org filters in most cases, because they are AST transformations. Pattern matching makes it convenient and practical in Haskell to just transform the part of the tree you're interested in. And because the Pandoc data structure has a JSON serialization format, filters can be written in just about any language, not just Haskell. This is an nice system, IMHO, which has one big advantage: it is possible to write complex filters (i.e., those that do more than just simple string manipulation) in an output-agnostic way. Pandoc filters can do things which are generally only possible or convenient to do in Org by creating a derived backend, which isn't output-agnostic. Best, Richard