From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sam Halliday Subject: ox-md and ox-leanpub Date: Sat, 08 Apr 2017 13:12:16 +0100 Message-ID: <87fuhjp07z.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwpEA-0003rK-42 for emacs-orgmode@gnu.org; Sat, 08 Apr 2017 08:12:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwpE6-0000jt-UQ for emacs-orgmode@gnu.org; Sat, 08 Apr 2017 08:12:26 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:37143) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwpE6-0000gv-MQ for emacs-orgmode@gnu.org; Sat, 08 Apr 2017 08:12:22 -0400 Received: by mail-wm0-x234.google.com with SMTP id u2so8590526wmu.0 for ; Sat, 08 Apr 2017 05:12:22 -0700 (PDT) Received: from Samurai (cpc97604-walt24-2-0-cust162.13-2.cable.virginm.net. [82.8.192.163]) by smtp.gmail.com with ESMTPSA id g63sm2562036wme.11.2017.04.08.05.12.19 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 08 Apr 2017 05:12:19 -0700 (PDT) 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" To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hi all, I am starting to write a CC BY-SA 4.0 textbook and I want to be able to write it in org-mode and publish it on leanpub. I have hit some problems. I install org-mode on emacs 25.1 from http://orgmode.org/elpa/ like this (use-package org :ensure org-plus-contrib :defer t) (require 'ox-md) If I try to export the draft of my book https://raw.githubusercontent.com/fommil/fp-scala-mortals/master/book.org using C-c C-e and select m m (Markdown), I get this error: Debugger entered--Lisp error: (wrong-type-argument listp #("2017" 0 4 (:parent (#1)))) org-element-set-contents(#("2017" 0 4 (:parent (#0)))) apply(org-element-set-contents #("2017" 0 4 (:parent (#0))) nil) If I revert back to the version of ox-md that comes with Emacs 25.1, the file is exported ok. However, further to this. If I (require 'ox-leanpub) and C-c C-e using the default version of org-mode, then the option to export to Leanpub does not appear. Could somebody who knows how to write exporters please have a look over https://raw.githubusercontent.com/juanre/ox-leanpub/master/ox-leanpub.el to see if they can spot any obvious problems? If I install ox-leanpub with the latest org-plus-contrib then the :export-block line must be removed or it will fail to load. --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Best regards, Sam --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQTrVS7VRt8l2pBJU9SHlDipUv0byQUCWOjToAAKCRCHlDipUv0b ydHUAJ9nPtrXQfV3ClFXxiJOQR8Tvb8ybwCaA+ySajlcPBLl5TbEVpFQpee2klo= =YE7s -----END PGP SIGNATURE----- --==-=-=-- --=-=-=--