From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jay Kamat Subject: Re: Bug: export to markdown invalid URL Date: Tue, 22 Aug 2017 17:50:18 -0400 Message-ID: References: <357ecb77-e9a1-2183-c9de-218a69a23893@posteo.eu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="94eb2c0c0aca08a23f05575e960a" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkH4M-0000oR-5O for emacs-orgmode@gnu.org; Tue, 22 Aug 2017 17:50:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkH4K-0007eD-TL for emacs-orgmode@gnu.org; Tue, 22 Aug 2017 17:50:42 -0400 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]:33311) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dkH4K-0007dw-Ht for emacs-orgmode@gnu.org; Tue, 22 Aug 2017 17:50:40 -0400 Received: by mail-pg0-x242.google.com with SMTP id u191so13100pgc.0 for ; Tue, 22 Aug 2017 14:50:40 -0700 (PDT) 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.org@gnu.org Sender: "Emacs-orgmode" To: fabio.leimgruber@posteo.eu Cc: emacs-orgmode --94eb2c0c0aca08a23f05575e960a Content-Type: text/plain; charset="UTF-8" Hi again, sorry for the repeated emails, but I think I've come up with a better solution to this issue, to just use the raw link target in the target of the markdown export, which I've attached to this email. Feel free to pick either one of these patches or come up with something better. Hope this gets fixed soon, -Jay On Tue, Aug 22, 2017 at 5:33 PM, Jay Kamat wrote: > Hi, > > Thanks for catching that. That was my fault, for failing to test > commit f3d7284ebd0c6e8248f7c3c444937270402b0ba6 properly. > > See http://lists.gnu.org/archive/html/emacs-orgmode/2017-08/msg00147.html > for the previous thread. > > I've attached a trivial patch which appears to fix the issue for me, > but I don't know if there's a cleaner way to do it or not (is there a > link property that keeps the ':' in either the link or the type?). > > Thanks, > -Jay > > On Tue, Aug 22, 2017 at 5:16 PM, Fabio Leimgruber > wrote: >> Hello everyone, >> >> using latest master, an org file containing just the link >> >> #+BEGIN_SRC org >> [[http://orgmode.org/img/org-mode-unicorn-logo.png]] >> #+END_SRC >> >> on export to markdown with =C-c C-e m m= produces the md file >> >> #+BEGIN_EXAMPLE >> # Table of Contents >> >> >> >> ![img](http//orgmode.org/img/org-mode-unicorn-logo.png) >> #+END_EXAMPLE >> >> containing an invalid URL. >> >> Best Regards, >> >> -- >> Fabio Leimgruber >> --94eb2c0c0aca08a23f05575e960a Content-Type: text/x-patch; charset="US-ASCII"; name="0001-ox-md.el-Fix-missing-in-exported-markdown-image-link.patch" Content-Disposition: attachment; filename="0001-ox-md.el-Fix-missing-in-exported-markdown-image-link.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_j6o4f1zg1 RnJvbSA3NDNkYWY1Mzg0M2EyOWIxMjAyNTUzMzQ1YjRmYzI5OGFjODdjNzRlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBKYXkgS2FtYXQgPGpheWdrYW1hdEBnbWFpbC5jb20+CkRhdGU6 IFR1ZSwgMjIgQXVnIDIwMTcgMTc6Mjg6MjggLTA0MDAKU3ViamVjdDogW1BBVENIXSBveC1tZC5l bDogRml4IG1pc3NpbmcgJzonIGluIGV4cG9ydGVkIG1hcmtkb3duIGltYWdlIGxpbmtzCgoqIGxp c3Avb3gtbWQuZWwgKG9yZy1tZC1saW5rKTogVXNlIHJhdy1saW5rIGZvciBtYXJrZG93biBsaW5r IHRhcmdldAogIGluc3RlYWQgb2YgbWVyZ2luZyB0eXBlIGFuZCByYXctcGF0aAotLS0KIGxpc3Av b3gtbWQuZWwgfCA1ICsrKy0tCiAxIGZpbGUgY2hhbmdlZCwg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