[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Org-publish and attachment links
From: |
Ihor Radchenko |
Subject: |
Re: Org-publish and attachment links |
Date: |
Sun, 11 Aug 2024 15:24:10 +0000 |
Sébastien Gendre <seb@k-7.ch> writes:
> # TL;DR
>
> When I export Org-mode documents with org-publish, it cannot resolve
> links in format "[[attachment:image.png]]".
>
> But when I export manually the same document with the export dispatcher,
> the export work correctly and the attachment link is correctly resolved.
>
> I don't know if it's a bug, or if it's planned to work like this and a
> feature suggestion is needed. So, I post a message here.
In your script, you do not load org-attach library. So, attachment:
links are simply not recognized.
> ;; Package load and configuration
>
> ;; Use org
> (use-package org)
>
> ;; Use ox-publish
> (use-package ox-publish)
Add (require 'org-attach) here.
--
Ihor Radchenko // yantar92,
Org mode contributor,
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>