From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?Windows-1252?Q?Gustav_Wikstr=F6m?= Subject: Re: attachment: link type export to HTML invalid attach dir Date: Tue, 14 Jan 2020 03:27:33 +0000 Message-ID: References: , <87pnfnee7e.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:57022) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irCrk-00006V-8e for emacs-orgmode@gnu.org; Mon, 13 Jan 2020 22:27:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1irCri-0007W2-W3 for emacs-orgmode@gnu.org; Mon, 13 Jan 2020 22:27:40 -0500 Received: from mail-eopbgr70107.outbound.protection.outlook.com ([40.107.7.107]:21344 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1irCri-0007UM-Jn for emacs-orgmode@gnu.org; Mon, 13 Jan 2020 22:27:38 -0500 In-Reply-To: <87pnfnee7e.fsf@gmail.com> Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: "emacs-orgmode@gnu.org" , "numbchild@gmail.com" Hi! Thanks for reporting this! The code is updated on the master branch to make the exporters aware of how= to deal with attachment links. Commit d70db54db for the curious. Basically= , attachment links are expanded into file-links by the exporters now, befor= e further processing into links in the respective markup language. Regards Gustav ________________________________________ From: Emacs-orgmode on beh= alf of stardiviner Sent: Monday, January 13, 2020 13:24 To: emacs-orgmode@gnu.org Subject: Re: attachment: link type export to HTML invalid attach dir When I export with =3D[C-c C-e h o]=3D, I found attached inline image links= are not displayed in HTML page. Here is Org content: #+begin_src org ,****** Strings are not Lists, but Anyway=85 :PROPERTIES: :ID: 2fd354f3-ac7a-499d-9fe4-a76626bbdb38 :END: In Calva Paredit, strings are treated in much the same way as lists are. He= re=92s an example showing Slurp and Barf, Forward/Backward List, and Grow Selectio= n. [[attachment:string-as-list.gif]] #+end_src The email attachment contains the screenshot of HTML page. I used Edebug on functions, track down to the error function ~(org-attach-d= ir)~, it returns ~nil~ when in exporting to HTML, but when I evaluate ~(org-attac= h-dir)~ interactively under the headline, it works correctly. -- [ stardiviner ] I try to make every word tell the meaning what I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3