emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [FR] Please add environment variable substitution in `org-display-in


From: Pan Xie
Subject: Re: [FR] Please add environment variable substitution in `org-display-inline-images'
Date: Thu, 1 Jun 2023 08:24:58 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2

I think that depends on whether the linter will verify the existence of each file path. Strictly speaking, it should, thus the org-lint also need changing. On the other hand, if the tool just verify the grammar of the org file itself, then it might be OK without changing. I never use the linter before, might give it a try sometime.


But the export functionality definitely need changing, otherwise the images won't be shown in exported html (or other format) files, and someone will report a bug.

On 6/1/23 08:12, Samuel Wales wrote:
org-lint might need changing too?

On 5/31/23, Pan Xie <xiepan@skyguard.com.cn> wrote:
Fantastic!! Thanks for your help. I can remove my ugly override codes.

BTW, Please keep in mind that the org export codes also need to
substitute the environment variables. My proposal only works for the org
file itself, When exports the org file to html, the image file path will
still include the environment variable, which is of course not correct.

On 5/31/23 16:24, Ihor Radchenko wrote:
Pan Xie <xiepan@skyguard.com.cn> writes:

I recently found that the environment variable substitution does not
apply to inline image paths. Supposing I use a path
“/home/pxie/$Gallery/” to store all my image files, “$Gallery”
should be substituted with its corresponding value. The file link DOES
substitute the environment variables, but inline image paths not. So I
think it is a reasonable demand for the consistency.
Agree.
Done, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3123caa8e






reply via email to

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