From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18312 Path: news.gmane.org!.POSTED!not-for-mail From: John MACFARLANE Newsgroups: gmane.text.pandoc Subject: Re: How to suppress title attribute in a CommonMark image link? Date: Fri, 13 Oct 2017 11:48:53 -0700 Message-ID: <20171013184853.GD32136@protagoras> References: <892c5a25-086a-4e19-b4c1-8975cea8df0f@googlegroups.com> <20171013173117.GA27286@protagoras> <3dcce503-9815-4a2d-aad9-b884f0e023aa@googlegroups.com> <20171013180518.GD27286@protagoras> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed X-Trace: blaine.gmane.org 1507920533 4795 195.159.176.226 (13 Oct 2017 18:48:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Oct 2017 18:48:53 +0000 (UTC) User-Agent: Mutt/1.9.1 (2017-09-22) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBDEVQTHQKGQECRO6PEI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 13 20:48:46 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ua0-f190.google.com ([209.85.217.190]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e350f-0007Zo-Sp for gtp-pandoc-discuss@m.gmane.org; Fri, 13 Oct 2017 20:48:38 +0200 Original-Received: by mail-ua0-f190.google.com with SMTP id a47sf4165512uai.10 for ; Fri, 13 Oct 2017 11:48:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1507920525; cv=pass; d=google.com; s=arc-20160816; b=CwfDag8RFS4HUnHQOlgy4iENKFo9iZLrGt5zPOgJ77eLOiv3jiJ5gttef5EyV20ip9 pgEswVvyO0JwTOv9izuGjOf6U7o0emRdJcqOUzAKaXi/QOuxwulEtxfcFhwNee8DiJL2 oA4Z6nm7coi1EIlnCouRDnOfdrYIM7pmonocccJe2GXH5QYcdk/gOUdMxKhd41G4xcby zkZzFlK1NK4H5FRNnm+gr702/B0KifllVjYwoiwVs4fo+EfOaNKyMh0dzPGtznxQaaDH 3hi9Kdzihcqyn/4NLiNyOZl4PBknJqqslxWokR7PJNONUd3KnlHD4CSjsyltxOxNvrhl eFUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :date:from:arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=Yd2qIQxPSAnuftTWvikM9VBoZS+H3Ma2lQyssgv0FSY=; b=BlZItWvZyaHGfc0I3wl65wmlKM8rgJduq/lwLTWRyksxNtTfjpA2R37EpZC0z2Akpr wH9smtPjG4Zx57m7cNrRLZOHzwwNk5GM526o/ueK7fm6bF/oz+A2zq1wMvKlgpLgznF/ 0NLKfpLjykbVJGrnE3hNpXEmcBh7Ud5YZ5neY88Jujutb/Eq87NnLunZ+ZIJh3ntyFR5 ZYTELzG/TFzq4nEYTZa0GEj6koNCistUHAt2nEJkmpu0jihuIhrfTF85J1srQS6xXCFV EyVgNoTLEoN7j905E/1xdOEltpmD8ZM65qPWQNOqr2qhICz1WFdKk5/uenm6Fa/loP0+ ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=ZDZRkNXF; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::233 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=Yd2qIQxPSAnuftTWvikM9VBoZS+H3Ma2lQyssgv0FSY=; b=JXemJ9i1nNVJ9nACr8pgBXW6VljPjQYzdvOR3AZ4mB882+yV4gysFoic5DFaUKe0no eeA6cDv2Wi8qCEk3Y/le1YheggR9Lx04kcr4rsLEm6wjGjksv7JBaY+nUqxNag61+Rdy 5cer9ewZ4h1/qtFVoi9fG3q/3aHj461iCS8xo7r8+Ug25oHqJ4UU5H6dqBngbmwKyCNm 76CMbEwHeWD6NaDolBwgm+2yiu9sjszJHq+rGxEdCNoYRJbiNB/HiYibgJuLfV/46Qd3 2WdIiFctAV9eEfuIYIS5XtyNt/YnwUCZrWIEwtGC6uUKU2soabg29Q7UCGEhx963ZkNo fp5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=Yd2qIQxPSAnuftTWvikM9VBoZS+H3Ma2lQyssgv0FSY=; b=s1j20Rzi3YYXemG4DjI+QtjMNeJCZr4tXO3tj+BSUnkRDkqKOC4frXZTeSlpEHE9o7 6fkddPli/pFssvu1BKdH8EFY6PSs8w2WxuiPTYf/OOkcDs+ZVcbwcwU2C9JTOV0LiMn6 MmUk8v9Bz9DnV5JYmMdFi4Zu0v6M8tiCRhzJyHMo6DAH73ooxTkWaCT8R/m96RRwLG0s iEKsTLK0yS7T7sLxEZgZseiTT3YOfcOpECEarTPRb+q1QWIeR9/HAgRrcP54eT0d7Ar/ ye0jWIm0pzVe8u18E5OxiW58nlh1mV6093hRey1diYKjkYUDwx+deTvOH21Waew/+icS Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AMCzsaWLkaJi3x03VTbmBiDQyafNQY4pyIfkW9bcv3J4FPP26cJyezWm nox8hXto9/7+lpTxtA88Aww= X-Google-Smtp-Source: AOwi7QCK0w7jDDF2vv5pINwvKBGpduKLHbeuvSith161vb2uEwPlTi3ZbKFN8UO2wv9jdA16W/R/xA== X-Received: by 10.31.160.207 with SMTP id j198mr147420vke.10.1507920525329; Fri, 13 Oct 2017 11:48:45 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.200.17.4 with SMTP id c4ls3648777qtj.4.gmail; Fri, 13 Oct 2017 11:48:44 -0700 (PDT) X-Received: by 10.200.26.180 with SMTP id x49mr1824809qtj.10.1507920524793; Fri, 13 Oct 2017 11:48:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507920524; cv=none; d=google.com; s=arc-20160816; b=tjE6Ypcdd9LZBAfMLFVgEixeVJQPJTRBFtVBbMfWlmeS/iMsQIoqqhJ7p77cfBlfCy M+Nm82eOsleu08MzWnP2AXn4Tp+TrgcqQlvmXj44ihdHzOFMSCVhpUasa6F/Dp8B8wA8 arTLkiklcXl1st61HmPh0sfa4N/l+ETDkNB9PAOmDk7ySgU2cCZOv70Fiz3hTjRb61Lh 6S3P/u3BqFooOb2Nczis+riEaxFGO+vxgD/8V1nVUBkqWdGcGZBkoMfF/Wm1qDbh2ZJT Z3aCN5w23m7rr9vwppxiJ/xtCYsV8c6Yl1FygwYphJRhlsYJDfRlU4M1igNNFUDdpxM1 3d5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:to:date:from:dkim-signature :arc-authentication-results; bh=TNPNMWJovQM9MeJcBD3j4y9TdNX+1W31gsNIJMjLEAI=; b=tveAHuzZnkuKoWaOt012xLdBbt69B8WeEHVGOItqaHTspu+xdwUonb5URi5LoJ/gAL 1FxkyQpuCDyjGtIKPZ8EpCUT0xesueGHV8R7rIjB8/pRzsWo3qpYY5d8ESbHlIDe8dTY ayZqtyeff7zUMUUMiCsfOqX2e91Jw4ciGROd0ubDs+duYZgqXbiqOi/QMtj6SOOisvwt ZZ/TdLXhskDJrRslScWIFG7VhUz/5gQva4PLeDj3evktTup6EEMLJtjTWkS8afym+hFL UzvjBxPDjJVxGE7xk0JyhqLHWCo893mTpa/1mjFuNjlzvDrdjUd5VwMUMbw7IMYiDa2P 9Dsw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=ZDZRkNXF; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::233 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf0-x233.google.com (mail-pf0-x233.google.com. [2607:f8b0:400e:c00::233]) by gmr-mx.google.com with ESMTPS id x10si76610qkl.5.2017.10.13.11.48.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Oct 2017 11:48:44 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::233 as permitted sender) client-ip=2607:f8b0:400e:c00::233; Original-Received: by mail-pf0-x233.google.com with SMTP id z11so11075565pfk.4 for ; Fri, 13 Oct 2017 11:48:44 -0700 (PDT) X-Received: by 10.99.101.133 with SMTP id z127mr2038436pgb.139.1507920523485; Fri, 13 Oct 2017 11:48:43 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id x11sm3950703pgq.29.2017.10.13.11.48.41 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Oct 2017 11:48:42 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 65368A1ED; Fri, 13 Oct 2017 14:48:31 -0400 (EDT) Content-Disposition: inline In-Reply-To: X-PGP-Key: http://johnmacfarlane.net/jgm.asc X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=ZDZRkNXF; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::233 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:18312 Archived-At: Hm. Don't know what RMarkdown is doing with this. +++ Jennifer Bryan [Oct 13 17 11:16 ]: > My problem is occurring at arm's length inside an R Markdown workflow > (.R or .Rmd --> .md --> .html). I guess there's something else we're > doing that causes ?URL encoding? of the image link. This is the pandoc > error I ultimately see at the conversion to html stage for the affected > image links: >pandoc: Could not fetch fooabcdefghijklmnopqrstuvwxyz_files/figure-markdown_stri >ct/unnamed-chunk-1-1.png%20%22fig:%22 >fooabcdefghijklmnopqrstuvwxyz_files/figure-markdown_strict/unnamed-chunk-1-1.png > "fig:": openBinaryFile: does not exist (No such file or directory) >Error: pandoc document conversion failed with error 67 > > On Friday, October 13, 2017 at 11:05:11 AM UTC-7, John MacFarlane > wrote: > > +++ Jennifer Bryan [Oct 13 17 10:57 ]: > > From my narrow view of the world, changing the CommonMark writer > to > > match the rest here would be great! > Done. > > In my real problem, the presence of this "fig:" makes image > links > > vulnerable to breakage via the insertion of a hard line break at > the > > space before "fig:". Therefore I have to also manipulate text > wrapping, > > i.e. set --wrap=none or --wrap=preserve to protect the links. > I don't get that. This is a perfectly valid image in > CommonMark: > ![](foo.png > "fig:") > > On Friday, October 13, 2017 at 10:31:12 AM UTC-7, John > MacFarlane > > wrote: > > > > It's a kludge we use to distinguish images that should be > > treated as figures. You can turn off the extension > > entirely using > > -f markdown-implicit_figures > > I can also change the CommonMark writer so that the "fig:" > > prefix is removed, as it is in the other Markdown writers. > > +++ Jennifer Bryan [Oct 13 17 09:44 ]: > > > Why does the title "fig:" get inserted into this image > link and, > > more > > > importantly, how can I prevent that? > > > $ echo '![](foo.png)' | pandoc -f markdown -t commonmark > > > ![](foo.png "fig:") > > > It appears to be fairly specific to CommonMark, i.e. it's > not > > there for > > > other flavours of markdown. > > > $ echo '![](foo.png)' | pandoc -f markdown -t > markdown_github > > > ![](foo.png) > > > > > > -- > > > You received this message because you are subscribed to > the > > Google > > > Groups "pandoc-discuss" group. > > > To unsubscribe from this group and stop receiving emails > from > > it, send > > > an email to [1][1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > To post to this group, send email to > > > [2][2]pandoc-...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > To view this discussion on the web visit > > > [3][3][1]https://groups.google.com/d/msgid/pandoc-discuss/ > > 892c5a25-086a-4e19- > > > b4c1-8975cea8df0f%[4][2]40googlegroups.com. > > > For more options, visit [4][5][3]https://groups.google. > com/ > > d/optout. > > > > > >References > > > > > > 1. mailto:[6][4]pandoc-discuss+ > unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > > 2. mailto:[7]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > > 3. [8][5]https://groups.google.com/d/msgid/pandoc-discuss/ > 892c5a25- > > [6]086a-4e19-b4c1-8975cea8df0f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium= > > email&utm_source=footer > > > 4. [9][7]https://groups.google.com/d/optout > > > > -- > > You received this message because you are subscribed to the > Google > > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from > it, send > > an email to [10][8]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To post to this group, send email to > > [11][9]pandoc-...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > > [12][10]https://groups.google.com/d/msgid/pandoc-discuss/ > 3dcce503-9815-4a2d > > -aad9-b884f0e023aa%[11]40googlegroups.com. > > For more options, visit [13][12]https://groups.google.com/ > d/optout. > > > >References > > > > 1. javascript:/ > > 2. javascript:/ > > 3. [13]https://groups.google.com/d/ > msgid/pandoc-discuss/892c5a25-086a-4e19- > > 4. [14]http://40googlegroups.com/ > > 5. [15]https://groups.google.com/d/optout > > 6. javascript:/ > > 7. javascript:/ > > 8. [16]https://groups.google.com/d/ > msgid/pandoc-discuss/892c5a25-086a-4e19-b4c1-8975cea8df0f@ > googlegroups.com?utm_medium=email&utm_source=footer > > 9. [17]https://groups.google.com/d/optout > > 10. mailto:[18]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > 11. mailto:[19]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > 12. [20]https://groups.google.com/d/ > msgid/pandoc-discuss/3dcce503-9815-4a2d-aad9-b884f0e023aa@ > googlegroups.com?utm_medium=email&utm_source=footer > > 13. [21]https://groups.google.com/d/optout > > -- > You received this message because you are subscribed to the Google > Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [22]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to > [23]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > [24]https://groups.google.com/d/msgid/pandoc-discuss/d32e07da-beac-4710 > -b65e-7a02d9f76d43%40googlegroups.com. > For more options, visit [25]https://groups.google.com/d/optout. > >References > > 1. https://groups.google.com/d/msgid/pandoc-discuss/ > 2. http://40googlegroups.com/ > 3. https://groups.google.com/ > 4. javascript:/ > 5. https://groups.google.com/d/msgid/pandoc-discuss/892c5a25- > 6. http://086a-4e19-b4c1-8975cea8df0f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org/?utm_medium= > 7. https://groups.google.com/d/optout > 8. javascript:/ > 9. javascript:/ > 10. https://groups.google.com/d/msgid/pandoc-discuss/3dcce503-9815-4a2d > 11. http://40googlegroups.com/ > 12. https://groups.google.com/d/optout > 13. https://groups.google.com/d/msgid/pandoc-discuss/892c5a25-086a-4e19- > 14. http://40googlegroups.com/ > 15. https://groups.google.com/d/optout > 16. https://groups.google.com/d/msgid/pandoc-discuss/892c5a25-086a-4e19-b4c1-8975cea8df0f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > 17. https://groups.google.com/d/optout > 18. javascript:/ > 19. javascript:/ > 20. https://groups.google.com/d/msgid/pandoc-discuss/3dcce503-9815-4a2d-aad9-b884f0e023aa-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > 21. https://groups.google.com/d/optout > 22. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 23. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 24. https://groups.google.com/d/msgid/pandoc-discuss/d32e07da-beac-4710-b65e-7a02d9f76d43-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > 25. https://groups.google.com/d/optout