[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to export to markdown programmatically without the table of cont
From: |
Jeremie Juste |
Subject: |
Re: How to export to markdown programmatically without the table of contents? |
Date: |
Tue, 03 May 2022 23:02:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hello Karl,
On Tuesday, 3 May 2022 at 11:15, Karl Voit wrote:
>
> I tried this neat code snippet today with Emacs 26.3 and Org-mode
> 9.1.9 and I got an error:
>
> | org-export-barf-if-invalid-backend: Unknown "nil" back-end: Aborting export
>
> When I execute the following code, I get the same error:
> | (setq region "/foo/ *bar* https://example.com baz")
> | (org-export-string-as region 'md t '(:with-toc nil))
>
> Could it be that I don't have "md" as backend somehow? Is there a
> hidden requirement?
with
$ emacs -Q -L ./lisp -l org /tmp/test.org
then C-c C-e, I don't have markdown in the default export options.
tested with, Org mode version 9.5.3 (release_9.5.3-467-g2bd34e @
/home/djj/src/org-mode/lisp/).
And I still work with (require 'ox-md).
Best regards,
Jeremie