From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: Re: attachment: link type export to HTML invalid attach dir Date: Tue, 14 Jan 2020 13:04:12 +0800 Message-ID: <87o8v6iq7n.fsf@gmail.com> References: <87pnfnee7e.fsf@gmail.com> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:41642) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irEOI-00046c-Vj for emacs-orgmode@gnu.org; Tue, 14 Jan 2020 00:05:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1irEOH-0004EH-Pw for emacs-orgmode@gnu.org; Tue, 14 Jan 2020 00:05:22 -0500 Received: from [183.246.141.113] (port=10462 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1irEOE-0003ra-8V for emacs-orgmode@gnu.org; Tue, 14 Jan 2020 00:05:21 -0500 In-reply-to: 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: Gustav =?utf-8?Q?Wikstr=C3=B6m?= Cc: "emacs-orgmode@gnu.org" Gustav Wikstr=C3=B6m writes: > Hi! > > Thanks for reporting this! > > The code is updated on the master branch to make the exporters aware of h= ow to deal with attachment links. Commit d70db54db for the curious. Basical= ly, attachment links are expanded into file-links by the exporters now, bef= ore further processing into links in the respective markup language. > > Regards > Gustav Many thanks for really quick patching. I tested out the new patch, still does not work. #+begin_src org ,****** Strings are not Lists, but Anyway=E2=80=A6 :PROPERTIES: :ID: 2fd354f3-ac7a-499d-9fe4-a76626bbdb38 :END: In Calva Paredit, strings are treated in much the same way as lists are. He= re=E2=80=99s an example showing Slurp and Barf, Forward/Backward List, and Grow Selectio= n. [[attachment:string-as-list.gif]] #+end_src The upper org content is exported as this (HTML page): #+begin_example Strings are not Lists, but Anyway=E2=80=A6 In Calva Paredit, strings are treated in much the same way as lists are. He= re=E2=80=99s an example showing Slurp and Barf, Forward/Backward List, and = Grow Selection. file:///home/stardiviner/Org/Wiki/Computer Technology/Programming/Emacs/Dat= a/Emacs Packages/string-as-list.gif #+end_example You can see: 1. the link still does not contains the attach directory from ~(org-attach-= dir)~. 2. image links are not exported as inline image displayed with ~~. --=20 [ 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 =20=20=20=20=20=20