From: Kyle Meyer <email@example.com>
To: Pablo Palazon <firstname.lastname@example.org>
Subject: Re: Problems with attachment links in exported files
Date: Sun, 03 Jan 2021 20:46:50 GMT [thread overview]
Message-ID: <email@example.com> (raw)
Pablo Palazon writes:
> Hi everyone!
> I've had a trouble with attachment type link on exporting. I configured
> org-attach directory and using org-id and it works great on emacs, all
> those links work great. I can see any attach linked on org notes, but in
> exported files all those links point to local directory instead of the
> right attached folder.
> I tried to use
> (add-hook 'org-export-before-parsing-hook 'org-attach-expand-links)
> And it works except for inline images, but I don't understand why is not on
> org-mode repository code.
Hmm, I'm not sure what you mean by the last part. The snippet you show
is in the Org repo, specifically in org-attach.el:
I'm not an org-attach user, so I might be missing something obvious, but
I wasn't able to trigger the issue with inline links. Here's what I
tried using the default configuration on the master branch (c3888a8b7):
(let ((default-directory (make-temp-file "org-attach-export-test-" t)))
(with-current-buffer (find-file-noselect "scratch.org")
(insert "* h1\n\n")
That output includes
and the image is rendered inline.
Could you provide a minimal reproducer for the issue you see?
next prev parent reply other threads:[~2021-01-03 20:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-03 9:12 Problems with attachment links in exported files Pablo Palazon
2021-01-03 20:46 ` Kyle Meyer [this message]
2021-01-03 21:53 ` Pablo Palazon
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
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).