emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sam Halliday <sam.halliday@gmail.com>
To: emacs-orgmode@gnu.org
Subject: ox-md and ox-leanpub
Date: Sat, 08 Apr 2017 13:12:16 +0100	[thread overview]
Message-ID: <87fuhjp07z.fsf@gmail.com> (raw)

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

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.



[-- Attachment #2.1: Type: text/plain, Size: 27 bytes --]


-- 
Best regards,
Sam

[-- Attachment #2.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

                 reply	other threads:[~2017-04-08 12:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87fuhjp07z.fsf@gmail.com \
    --to=sam.halliday@gmail.com \
    --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).