From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18309 Path: news.gmane.org!.POSTED!not-for-mail From: Jennifer Bryan Newsgroups: gmane.text.pandoc Subject: Re: How to suppress title attribute in a CommonMark image link? Date: Fri, 13 Oct 2017 10:57:22 -0700 (PDT) Message-ID: <3dcce503-9815-4a2d-aad9-b884f0e023aa@googlegroups.com> References: <892c5a25-086a-4e19-b4c1-8975cea8df0f@googlegroups.com> <20171013173117.GA27286@protagoras> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_7294_105504209.1507917442683" X-Trace: blaine.gmane.org 1507917448 9292 195.159.176.226 (13 Oct 2017 17:57:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Oct 2017 17:57:28 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCPLDBV3WYCRBA75QPHQKGQEYYKSYRQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 13 19:57:23 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi0-f63.google.com ([209.85.218.63]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e34Cy-00010r-ML for gtp-pandoc-discuss@m.gmane.org; Fri, 13 Oct 2017 19:57:16 +0200 Original-Received: by mail-oi0-f63.google.com with SMTP id b189sf6482519oia.10 for ; Fri, 13 Oct 2017 10:57:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=B0tDVu2x78NyPcwqCL69RDu6KwA12DT19LilfYm7Fdk=; b=HEMviXnZgDZHF1vf/4NE+i50BvmYgdrqDJAQZGouV+/0rbKAEeHhQ57340DUO09s/g lcc17Uh0VENqKlfXJYnqse2sEXQd4g6dbEahds0FcLjfd9qodKP+5uWEnNPzn2DK3xzU 9vZrfSCAgk79r3tPuCDmc+d6myImt7NTJ/vFWNc50uBdV9Hf5B7Ct5xDw9JWYSTlStlf G4vpYZiIqaPaBNXFQuZ1Iogv92ugnHq1f5kAJRwWG7UDfBJLBm8F154bCYn6Vo1+KA8h NHYcuaGm3TAHGsJ1ZQl/UBEPSto+97rR/f1oxTng/QZieK0hS8FMkPdHkDZOxYqvOmAX HswA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=B0tDVu2x78NyPcwqCL69RDu6KwA12DT19LilfYm7Fdk=; b=fXqMpdfq9ogTJN+cCbZv6zENKLTNrGqebGo62azbwaE4wkDs/SWJat/CAToFGfDsHA ID9X4eSwxoV+EiNZTi4MG2QdzUccCD9onZqgsfX2bJj5S6Zj/T5lA1CJGmNnxEGZUQUE 8hATw5FsSmNAMeqRyAgJBWlbvTFPUZvM3MyRw7vNXXC0GdOSs8BqUDk8pCL+bEu3xyZ/ VYG7yQkq/SlnE8e/3sCdWgOHtrH+RNlifl/MpFCSMPqRAHKTCs7hlMnmAOZ+h02sozk7 6Jer+2NmsuSW646YrO8SK/Y847NoGrWp6AKtGnVTpr3jGZ6Z2lYT4IrMliqoRTr2jxPu Gmwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=B0tDVu2x78NyPcwqCL69RDu6KwA12DT19LilfYm7Fdk=; b=W/qeye7u0CVeCm8DuCWMiTTbY/OcyMk/VA5v+r5vtWJaAXF+oGDigTDKndo1bZuylu W0vVUhLFiyKwUcmqoL21wjx5eLD+H9q9nCSzxsmPsULoxqYqOnqE9zSzeIpPqTaRv8QE WIM/YPvRhz5XhOkFtMZSCquDchGU09/LcjDvmXDecMinZsK3JYcwGlgYMXcGcjNk9CRF RpwmM2cLBbpGitcBx8JPSGUgYVW4UwV3FRUp+6T3MPOY27jmYUVWP8udYyhveju5Acpr xHv87l4Wbq2ePqp2uFaM99evtF6YYmYfW17dk79NW5mpxfFzEN4xB3Jo0b3IWkPHT88e YECg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AMCzsaX018ENr3GDSn7Fp14xnj8l6EkHYW9rJ0OP2sPJkKDFkXaBfs1O mpWijs8tdHO4bvMKOcrAUjA= X-Google-Smtp-Source: AOwi7QD+3jVXhsq1+n8jkZo1shl4t+nUg4HWQaAqlQMppqTZ2t3MtPm41Mu8tAQ7UhE8i+XfzQneAw== X-Received: by 10.157.12.211 with SMTP id o19mr70115otd.0.1507917444139; Fri, 13 Oct 2017 10:57:24 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.47.34 with SMTP id h31ls2442353otb.3.gmail; Fri, 13 Oct 2017 10:57:23 -0700 (PDT) X-Received: by 10.157.88.135 with SMTP id x7mr70084otg.13.1507917443178; Fri, 13 Oct 2017 10:57:23 -0700 (PDT) In-Reply-To: <20171013173117.GA27286@protagoras> X-Original-Sender: jenny.f.bryan-Re5JQEeQqe8AvxtiuMwx3w@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:18309 Archived-At: ------=_Part_7294_105504209.1507917442683 Content-Type: multipart/alternative; boundary="----=_Part_7295_128934105.1507917442683" ------=_Part_7295_128934105.1507917442683 Content-Type: text/plain; charset="UTF-8" >From my narrow view of the world, changing the CommonMark writer to match the rest here would be great! 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. 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]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > > To post to this group, send email to > > [2]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > > To view this discussion on the web visit > > [3] > https://groups.google.com/d/msgid/pandoc-discuss/892c5a25-086a-4e19- > > b4c1-8975cea8df0f%40googlegroups.com. > > For more options, visit [4]https://groups.google.com/d/optout. > > > >References > > > > 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > 2. mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > 3. > https://groups.google.com/d/msgid/pandoc-discuss/892c5a25-086a-4e19-b4c1-8975cea8df0f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > > 4. 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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3dcce503-9815-4a2d-aad9-b884f0e023aa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_7295_128934105.1507917442683 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
From my narrow view of the world, changing the CommonMark = writer to match the rest here would be great!

In my real= problem, the presence of this "fig:" makes image links vulnerabl= e to breakage via the insertion of a hard line break at the space before &q= uot;fig:". Therefore I have to also manipulate text wrapping, i.e. set= --wrap=3Dnone or --wrap=3Dpreserve to protect the links.

On Friday,= October 13, 2017 at 10:31:12 AM UTC-7, John MacFarlane wrote:
It's a kludge we use to distinguish ima= ges that should be
treated as figures. =C2=A0You can turn off the extension
entirely using

=C2=A0 =C2=A0 -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 ]:
> =C2=A0 Why does the title "fig:" get inserted into this = image link and, more
> =C2=A0 importantly, how can I prevent that?
> =C2=A0 $ echo '![](foo.png)' | pandoc -f markdown -t commo= nmark
> =C2=A0 ![](foo.png "fig:")
> =C2=A0 It appears to be fairly specific to CommonMark, i.e. it'= ;s not there for
> =C2=A0 other flavours of markdown.
> =C2=A0 $ echo '![](foo.png)' | pandoc -f markdown -t markd= own_github
> =C2=A0 ![](foo.png)
>
> =C2=A0 --
> =C2=A0 You received this message because you are subscribed to the= Google
> =C2=A0 Groups "pandoc-discuss" group.
> =C2=A0 To unsubscribe from this group and stop receiving emails fr= om it, send
> =C2=A0 an email to [1]pandoc-discus...@googlegroups.com.
> =C2=A0 To post to this group, send email to
> =C2=A0 [2]pandoc-...@googlegroups.com.
> =C2=A0 To view this discussion on the web visit
> =C2=A0 [3]http= s://groups.google.com/d/msgid/pandoc-discuss/892c5a25-086a-4e19-<= /a>
> =C2=A0 b4c1-8975cea8df0f%
40googlegroups.com.
> =C2=A0 For more options, visit [4]https:= //groups.google.com/d/optout.
>
>References
>
> =C2=A0 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> =C2=A0 2. mailto:pandoc-...@googlegroups.com
> =C2=A0 3. https://groups.google.com/d/msgid/pandoc-discuss/892c5a25-0= 86a-4e19-b4c1-8975cea8df0f@googlegroups.com?utm_medium=3Demail&am= p;utm_source=3Dfooter
> =C2=A0 4. https://groups.google.com/d/optout

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/3dcce503-9815-4a2d-aad9-b884f0e023aa%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_7295_128934105.1507917442683-- ------=_Part_7294_105504209.1507917442683--