emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] how do you get an OPTIONS value during export?


From: Rasmus
Subject: Re: [O] how do you get an OPTIONS value during export?
Date: Wed, 09 Aug 2017 16:55:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Hi John,

John Kitchin <address@hidden> writes:

> In my ipynb exporter, I generate md strings for cells using something like
>
> (org-export-string-as
> s
> 'md t '(:with-toc nil :with-tags nil))
>
> This works unless there is a broken link:
>
> https://github.com/jkitchin/ox-ipynb/issues/2#issuecomment-321061051
>
> I figured out I can make it work with :with-broken-links mark, but that
> might overrule what is in an #+OPTIONS line.
>
> So, my question is how do I get the value of what :with-broken-links should
> be that has the right prececedence, i.e. OPTIONS
> org-export-with-broken-links, during the export?

Assuming you have access to the settings, typically called ‘info’ in ox,
it should be easy,

    (plist-get info :with-broken-links)

See ‘org-export-as’ in ox.el for how it’s populated.

For a user-function see ‘org-export-get-environment’.  In an export
backend, it should not be necessary as you should have the info-plist
already.  For usage of ‘org-export-get-environment’ see ox-publish.el.

Hope it helps,
Rasmus

-- 
And when I’m finished thinking, I have to die a lot




reply via email to

[Prev in Thread] Current Thread [Next in Thread]