John Kitchin <jkitc...@andrew.cmu.edu> writes:
> In my ipynb exporter, I generate md strings for cells using something like
> 'md t '(:with-toc nil :with-tags nil))
> This works unless there is a broken link:
> 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,
And when I’m finished thinking, I have to die a lot