Earl Chase <[email protected]> writes: > +*** New custom variable ~org-export-file-links-verbatim~ > + > +~org-export-file-links-verbatim~ controls whether Org > +mode exports file links that start with "/" verbatim. > +Set it to t to export said links without first appending > +~file:~ to them. > + > +This variable has no effect on links that are already prefixed with > +=file:= or links that start with a =~=.
I have doubts about this approach. First, it will not work for publishing, because publishing will turn absolute links into relative. Second, the links like you described will not be valid links in Org mode buffers. Third, we have a very similar functionality in :html-link-home. Finally, it is not clear why this option is global. Yes, it can be useful for markdown export as you described, but, say, in odt export, it will break things. Could you please describe in more details about your use case, providing some examples? I feel that we need to discuss the overall export workflow first and possibly come up with something that does not involve creating broken links that do not work in Org buffers. Meanwhile, I have reverted the patch. Let's discuss the general feature request first, and how to design the suggested feature better. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=2277d10ac -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
