Karthik Chikmagalur <karthikchikmaga...@gmail.com> writes:

>> I am looking at this and wonder why not simply change the whole
>> org-link-preview file to have (ov image-data-or-path &optional link align 
>> width)
>> arguments. Then, we can make `org-link-preview-image-data' internal and
>> only expose `org-link-preview-file' as the API function.
>
> Is this without changing the preview API, which always expects the
> arguments
>
> (ov path link)
>
> to preview any link type?

The new signature is (ov image-data-or-path &optional link align width)
So, LINK becomes optional in a sense that ALIGN+WIDTH may be provided instead.

Should be 100% backwards-compatible.

-- 
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>

Reply via email to