Max Nikulin <maniku...@gmail.com> writes: > [[https://orgmode.org][<file:./img.png>]] > > [[https://orgmode.org][file:./img.png]] > ... > Image overlays are created for all 3 links in the case of Org 9.5.5, > however only first link is displayed as the image in the case of current > git main. > > Is it a regression or an intentional change? Maybe I just missed some > defcustom or startup option.
Yeah. We forgot special case for nested links. Nested links are not parsed, so we have special cases for them all over the place. The simplest fix will be restoring special handling of links inside link description, although I am thinking if we should revert the Nicolas's decision to disallow nested links. Originally, the link nesting was disallowed to handle the following bug report: https://list.orgmode.org/orgmode/87twa23k74....@nicolasgoaziou.fr/ that had issues with exporting links like [[info:emacs#Echo%20Area][info:emacs#Echo Area]] However, we are getting way too many special cases all over the code by now. Maybe, after all, it is a better idea to bring back the nested links, and remove the nesting just for the purposes of exporter (a single special case vs. many we have now). > Even more I am puzzled by the following example: > > <https://blog.tecosaur.com/tmio/2021-04-26-Welcome.html#inline-display-remote> > "Inline display of remote images" > > > [[https://github.com/larsmagne/meme/raw/master/images/Grandma-Finds-The-Internet.jpg]] > > I expect that it may be related to TRAMP file paths like > /https:/host/file.png (by default http is disabled in gvfs backend > though), but not for regular URLs. > > dcdb47017 2020-02-01 11:50:08 +0100 Jack Kamm: Add inline remote image > display Looks like we simply have no handler for https: links. Kathik, could you take a look? -- 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>