emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Link preview generation with new link preview property


From: Björn Bidar
Subject: Re: Link preview generation with new link preview property
Date: Fri, 20 Dec 2024 01:26:25 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Karthik Chikmagalur <karthikchikmagalur@gmail.com> writes:

>> I don't think so, my package org-link-beautify ported to the new
>> :preview mechanism. The file preview not always image. Could be text, or
>> icon etc. So pass in image object is not a good idea. It will limit
>> preview functionality extensibility.
>
> The API will not be changed.  Org will provide a new
> `org-link-preview-image' function that you can use to preview links
> using image data.  You'll have to write the adapter to register this as
> the :preview handler for a link type yourself.
>
> Karthik

I'm also wondering how much could there be shared if the thing to be
displayed on the overlay isn't an image.

The org-image--align function talks about images but ultimately
doesn't do anything specific to image.
I think the alignment the only part which is generic.



reply via email to

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