emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ox-md and ox-leanpub
@ 2017-04-08 12:12 Sam Halliday
  0 siblings, 0 replies; only message in thread
From: Sam Halliday @ 2017-04-08 12:12 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-08 12:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-08 12:12 ox-md and ox-leanpub Sam Halliday

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).