From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18310 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:05:18 -0700 Message-ID: <20171013180518.GD27286@protagoras> References: <892c5a25-086a-4e19-b4c1-8975cea8df0f@googlegroups.com> <20171013173117.GA27286@protagoras> <3dcce503-9815-4a2d-aad9-b884f0e023aa@googlegroups.com> 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 1507917924 25295 195.159.176.226 (13 Oct 2017 18:05:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Oct 2017 18:05:24 +0000 (UTC) User-Agent: Mutt/1.9.1 (2017-09-22) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBVMAQTHQKGQEVQ6Z66A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 13 20:05:19 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk0-f58.google.com ([209.85.213.58]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e34KU-0004E4-NI for gtp-pandoc-discuss@m.gmane.org; Fri, 13 Oct 2017 20:05:02 +0200 Original-Received: by mail-vk0-f58.google.com with SMTP id s198sf3553823vkf.10 for ; Fri, 13 Oct 2017 11:05:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1507917910; cv=pass; d=google.com; s=arc-20160816; b=G5S6stNymS1REiKH9KPArprP6lKQcv46TRhNFXUsQp54JzkHcdcrldMEne5fnS6Us+ YrqnQwKXYn8VFpRwPH1L7G1I2D6IGvEORIcon+U7PqruVnLHFIG/NMzCRE0zKLJOgICH Qf0bIk73LGtTnfivfFJzp1SzopOIju0sQUwHreUrbcBEeQXIdytAjzHiFxWLzbWZ0bVR hMdJZzE4jVlJKVQgWVBFLHLzuPNP9hCQX1pmX8rdh5aPbvbitCQftp2rb1LckjDaiZ5x H/Q1AIz3gdQSajRLBuQEAGgIfeynV3AgB2k7xuTHwggu9/SsPIumotRNXshrvZdilqQK b06A== 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=qpNNiZaYdDkGCn0UwXbX/DbVm6V0/WWJ1fYtMYeryps=; b=ZC8Fb8ZabTM6Xs8+OnkUX4xM/PartkEEC6VVYLv4vPDzJeMsnCeb6VVKN+jSGJBfWH WrS8iP8qDJZaH+4Npxce+13OabgS6bc00ROnb/sMOEC/LRQYPN9l+zfhargHXxKIM397 xdkVFfSWX5SqL920bElqb4pOBplNBogJVif3EUowRseH+6W4U9AnhY5tQZqy0Mx3kY8O DnyES2P5qdMPKaEWHWSsaVzZtjC6gNw6/lJfQ9AtVjZgTf3vs6m2ttJvMBqB1PkenhiJ 7qXfgOvBsz0+a8UiaFRGlP9MhHn2FLq+Xe1Au/XV7p6slOrZuSMFqTvvn8tJaZFYbHRC ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=lA30DsRw; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::241 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=qpNNiZaYdDkGCn0UwXbX/DbVm6V0/WWJ1fYtMYeryps=; b=Io1ib0uMr6LQTeQjcB800qK05SJSpDA3X7w7C75XYqEE0v/bUITfibZtgdClrAgPyL UcsA8gtUyz0I7SWyqGUlitmAsLADgLc8KwHq3TDicL3qs8nf5gyUhhtbnqQyvRh7T8Ex 6mEzShc4nH+cmEYotJZwS8cotiW2SnXC7LopD9JVQwomtHqu571+akkLHatoIWgS0AEr IUYxpgTuIez5i0X7WS7+iDyqS49QmCGQ5c+hNPVcG05gyEqXkSZkhH0wTm6OnyMUD2Wy Mu68lhRfZ/iR3/IQlKnp3Il6OjQoTQsoI2UK/OVS8hkQJkwixNYFnvo1SLH9c2mzPLLS Rajw== 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=qpNNiZaYdDkGCn0UwXbX/DbVm6V0/WWJ1fYtMYeryps=; b=hkngSmUfJyrISx/VMb6HzcxkQ6h5KX8lfZ+stK0Gdqz5TvmWcCbc0Xb/JWIsOBs6y/ Re9DNIhVmoSSZ2O6MA9XwbuYHbH2xnEQUpHglLSOwvQ+lKhXzkmMlj1nbjCS+Dw4PgRT ReFbv6wfDcOrxN7sQo1d1X9AbnIA0+MmT/HxLw5rd7weI7tMvodI7vcc2okbivVjJTRH RgSnuazRA0kG/ygwGCsBaOPgepA8Pj6NTyV9RnDKDBOfcHCNPXy6lo+SbpC/WnCnKXBN iTtvu7jLYMarzzRxWV/ZYNcvugRAqqFVPPm56QTOF0lSQyc0NQZ1VQmCuP09ZJ+gQ1Bw Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AMCzsaVMu414x4CDgUOOD2s1mECT0T7z8KmrRWyl08rWhbRTG8GHLr7y Ty7AIyYic5vOLyrXOhBW97Y= X-Google-Smtp-Source: AOwi7QBEIJG9PVN+yewh7etT+kvmW6NLuVEVPa2Efwk3SE6+0RK9ggMnDPConjQkxDlfVPRf0jtNpQ== X-Received: by 10.31.142.13 with SMTP id q13mr141499vkd.1.1507917910113; Fri, 13 Oct 2017 11:05:10 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.129.84.69 with SMTP id i66ls352557ywb.7.gmail; Fri, 13 Oct 2017 11:05:09 -0700 (PDT) X-Received: by 10.13.205.135 with SMTP id p129mr1122100ywd.194.1507917909419; Fri, 13 Oct 2017 11:05:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507917909; cv=none; d=google.com; s=arc-20160816; b=jXDXYUOurs7n1eAXUn++sXj+/zZBneM59SJrlgnMYXKxw2lsn6yLmEmEXUDVwgFh6p BrJqP4kLZitwC8ZLGmM/JlbYxyYDiVQgotZFSaEtW35aiWbUXC8UKOM45IbhDRn/N466 x0vbb6Jq25p8VYXTpLjiTwXLRoXbrt1IFCoq+L+CY0WTvat7dre6pQhoTJXuZQeZOm7O fvJWk4HpZPLE6T3DocyAwcwk7fpVXzYVhG6kA3YZ91qUD+ufwRaK9NqYwNgbgc7EF7lf w3zWI1PEW/f6LI6uf2wi3AIqavB5wQgZ2w+652oesaJyNxiRWXdKZZhcm6sIO8ymdzt6 OAGg== 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=vEgBJOJEiXmiHwY9naLplUKtFV0eK4wRORz/rVOGsjk=; b=M2lQI0fn25rO6Mev1beGkyfIMsv1Kk3klw2lcOSTvZd0oEJS8HkAWNXKQOaZ7MIw7O ZdLRj2cB6uY4Pob9Y+MzJFm3RtKNUGHXb5cZ6am5H8GqNXtDMRKE3/2I3C3PkY2k9fr+ qU5j/SqiKpaLsqtBZZBKWSsERixpHHfEahX7phaq+Gw9I/+ND+bLPQKxgY1siCdsePQf 6kcxMaKK8Cj3CR0kXov3J5xYKhIKOGnzfHO5EnNCWBxfs/lS2GjgzT97vv+HvPctPLWj 9WNfjGfA4yU4k3cDFFEC/Eug/JhKI2Mi0ZiJud3sGjLvRwEQ3sBex5aVWmVSoV5VyygR GfrA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=lA30DsRw; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::241 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com. [2607:f8b0:400e:c00::241]) by gmr-mx.google.com with ESMTPS id d62si69581ybc.4.2017.10.13.11.05.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Oct 2017 11:05:09 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::241 as permitted sender) client-ip=2607:f8b0:400e:c00::241; Original-Received: by mail-pf0-x241.google.com with SMTP id t188so8486674pfd.10 for ; Fri, 13 Oct 2017 11:05:09 -0700 (PDT) X-Received: by 10.98.101.132 with SMTP id z126mr2061792pfb.302.1507917908655; Fri, 13 Oct 2017 11:05:08 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id g24sm4163067pfk.0.2017.10.13.11.05.07 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Oct 2017 11:05:07 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id A2918A1ED; Fri, 13 Oct 2017 14:04:56 -0400 (EDT) Content-Disposition: inline In-Reply-To: <3dcce503-9815-4a2d-aad9-b884f0e023aa-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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=lA30DsRw; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c00::241 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:18310 Archived-At: +++ 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]https://groups.google.com/d/msgid/pandoc-discuss/ > 892c5a25-086a-4e19- > > b4c1-8975cea8df0f%[4]40googlegroups.com. > > For more options, visit [4][5]https://groups.google.com/ > d/optout. > > > >References > > > > 1. mailto:[6]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > 2. mailto:[7]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > 3. [8]https://groups.google.com/d/msgid/pandoc-discuss/892c5a25- > 086a-4e19-b4c1-8975cea8df0f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium= > email&utm_source=footer > > 4. [9]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]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to > [11]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > [12]https://groups.google.com/d/msgid/pandoc-discuss/3dcce503-9815-4a2d > -aad9-b884f0e023aa%40googlegroups.com. > For more options, visit [13]https://groups.google.com/d/optout. > >References > > 1. javascript:/ > 2. javascript:/ > 3. https://groups.google.com/d/msgid/pandoc-discuss/892c5a25-086a-4e19- > 4. http://40googlegroups.com/ > 5. https://groups.google.com/d/optout > 6. javascript:/ > 7. javascript:/ > 8. https://groups.google.com/d/msgid/pandoc-discuss/892c5a25-086a-4e19-b4c1-8975cea8df0f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > 9. https://groups.google.com/d/optout > 10. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 11. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 12. https://groups.google.com/d/msgid/pandoc-discuss/3dcce503-9815-4a2d-aad9-b884f0e023aa-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > 13. https://groups.google.com/d/optout