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:33:50 -0400 Message-ID: References: <357ecb77-e9a1-2183-c9de-218a69a23893@posteo.eu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="94eb2c03c92a216c9305575e5bc3" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkGoQ-0002OT-ON for emacs-orgmode@gnu.org; Tue, 22 Aug 2017 17:34:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkGoP-0006ld-LT for emacs-orgmode@gnu.org; Tue, 22 Aug 2017 17:34:14 -0400 Received: from mail-pg0-x22e.google.com ([2607:f8b0:400e:c05::22e]:33397) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dkGoP-0006iZ-Fc for emacs-orgmode@gnu.org; Tue, 22 Aug 2017 17:34:13 -0400 Received: by mail-pg0-x22e.google.com with SMTP id t3so91576968pgt.0 for ; Tue, 22 Aug 2017 14:34:12 -0700 (PDT) In-Reply-To: <357ecb77-e9a1-2183-c9de-218a69a23893@posteo.eu> 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 --94eb2c03c92a216c9305575e5bc3 Content-Type: text/plain; charset="UTF-8" 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 > --94eb2c03c92a216c9305575e5bc3 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_j6o3w7uz0 RnJvbSA1ZDkyMjU3NTc1ZTQ5N2UwOTU1YjM0MTRmYjFlMWE2OWU1ZWE5N2Y4IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBKYXkgS2FtYXQgPGpheWdrYW1hdEBnbWFpbC5jb20+CkRhdGU6 IFR1ZSwgMjIgQXVnIDIwMTcgMTc6Mjg6MjggLTA0MDAKU3ViamVjdDogW1BBVENIXSBveC1tZC5l bDogRml4IG1pc3NpbmcgJzonIGluIGV4cG9ydGVkIG1hcmtkb3duIGltYWdlIGxpbmtzCgoqIGxp c3Avb3gtbWQuZWwgKG9yZy1tZC1saW5rKTogQXBwZW5kICc6JyB0byB0aGUgdHlwZSBvZiBub24t ZmlsZQogIGltYWdlIGxpbmtzLgotLS0KIGxpc3Avb3gtbWQuZWwgfCAyICstCiAxIGZpbGUgY2hh bmdlZCwgMSBpbnNlcnRpb24oKyksIDEgZGVsZXRpb24oLSkKCmRpZmYgLS1naXQgYS9saXNwL294 LW1kLmVsIGIvbGlzcC9veC1tZC5lbAppbmRleCAwZGQxYmUwOTUuLmFjOTRiYTY0OCAxMDA2NDQK LS0tIGEvbGlzcC9veC1tZC5lbAorKysgYi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