Ihor Radchenko <yanta...@posteo.net> writes:

> Björn Bidar <bjorn.bi...@thaodan.de> writes:
>
>> Would it be possible to also handle image data in the function or
>> refactor the org-link-preview-file function in a way that the geometry
>> handling is done in a helper function which can be reused by other
>> handlers.
>
> There is such function: `org-display-inline-image--width'.
> We may consider exposing it as public function.

That would be awesome, the easier it is for other modes to add their own
handlers and them to survive org-mode updates.
Although for this http link handler it could be better a function inside 
org-mode.

>> The link element passed towards the handler didn't contain the
>> description e.g. in this case 
>> file:https://stable.melpa.org/packages/rpm-spec-mode-badge.svg.
>
> This is expected. See 
> https://orgmode.org/worg/dev/org-element-api.html#org22c967a
> You can access the contents by looking at buffer text between
> :contents-begin and :contents-end. Either directly, or by invoking
> sub-parser on the text.

Oh thanks, will look into that. Is there a offline version of the manual
like the org info manual? 
 

Reply via email to