From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32964 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Internal link to a RawBlock created via filter Date: Mon, 17 Jul 2023 17:05:40 -0700 Message-ID: <50EAD892-479F-427D-9CCE-A6CE4B1E4A9C@gmail.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_AE5CB3DF-8052-49CC-AFF4-04A617C4E47F" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35093"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBYNO26SQMGQEMHAFXYQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jul 18 02:05:59 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f56.google.com ([209.85.160.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qLYE1-0008qF-Aq for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 18 Jul 2023 02:05:57 +0200 Original-Received: by mail-oa1-f56.google.com with SMTP id 586e51a60fabf-1b44332e279sf7498193fac.0 for ; Mon, 17 Jul 2023 17:05:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689638756; cv=pass; d=google.com; s=arc-20160816; b=F+2ti2BobbjnkUMLG4GIvmiNF2KQds5HRolt14pFtufxfj+x3oOW4D6O2s1rghKAcV MdfXA+ffJPAVTbbiTa1Av9qeGV0I1njEVBNSYHBE/G1zX+HO7lGVzGP1PaGzqlNsZejV hztnTAAA3PpFEUy2fVwX0dO6KvUkd+Bf6c2mpl5lxsqkdc9kvR7BMDi9zl/wYXydZW6s qg2BTI/MOLKRVb3R7Q/W7pUzCV86UYrryeO4uv84joT4GVLHLbEmOp5bWMC1WFtNz2NC KyOWAlurnD25uNXoJVclR0ksZzdADQ3xH52yutM3oNbPHVGmycDC1msO15BWJGFDFq61 wPgA== 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:message-id:in-reply-to:to :references:date:subject:mime-version:from:sender:dkim-signature :dkim-signature; bh=GlTzFTOI2nqBiepWppwa4cK7+u4fy0+JPjdioOJ59QA=; fh=A7KGSvm30SBY9b2v+N53j+lkchMNZtkZbRzF4WqsV70=; b=bu3wMZueC9DXBYjqiP54GKNGA5zxkKE0Hg7xUi1iZhe1RKemcvtzSjbYrFdJltMAA3 x+B0m0ffeyQuiIDsIijqplm6gMWVaMhfMuVC6r4uW4O0z2x/T3afyUVKU2OaiFVGslqJ LG98qddAoCJ9ijnwy6B1f9hK92nbaDpvGcfa4oanesMkiVkp5iqih+8J2JSym5GHSrM9 fMGXenK3z88jZopPjzrKGPdUD2aJ9MTuRbjodNk7mQC+rQhhPLT4WBo8jB5pjWYwOZ99 ipuMHV/fxgifge9TnKjNyqylQ3k+NM8CvKe4yU04kXkRQ4iQttTMFpY5JhtN6cM87n5K wPmg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=jHuce3av; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1689638756; x=1692230756; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from:sender :from:to:cc:subject:date:message-id:reply-to; bh=GlTzFTOI2nqBiepWppwa4cK7+u4fy0+JPjdioOJ59QA=; b=ATzwwdMgn1pDhW4IbgAfIf52/q1fnuNmpcrptN8aBA0qlwzrIQvc0pPPWEp9xJTk/Z 1cYRzbKjju9XaWUm2nv+eXsfEPn47pyRV5tNgRT0KeXvEVNen6exZTkEXD/aV0K3Uo3S NNIzCGYULA7oVHepD5lU2o1SSqPzAFHq2io3I3gfyMjyyRz9vgeCabhY8xVbxsl6WHGU vgRkC4ECcvXHEvus2zPb40wFL9buON93mj9+JmVkEE2WUKJl7PAvbPHoZdPJ6WInzIZR JUmsyeSKLSu77rEQy1Egq8kTyyJVpF8teWOU6WbYmRf06j7ULXTICtAhxB4IWJf0TSbt DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689638756; x=1692230756; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from:from:to:cc :subject:date:message-id:reply-to; bh=GlTzFTOI2nqBiepWppwa4cK7+u4fy0+JPjdioOJ59QA=; b=Rl0LY5L1bF4HNW2rloSBLVpygctJv0kGtxPJbvKlw5VnlpsGjJUunyr7TXjQUTSIAL f/mowlkXqZIuj42rpxxxM9nlFtSnFugrj/Y3Xu7WiOZhG7j2GcOFG75NekHIGo08Y+e4 03z6yW3mvlge19kaCE7tYcp1QWwVAD34jfyrd0DXblQLGEfNswWqEaGjc73165xlZp8B 07n17zAsBT/zyBxlfjR4MRssj4OJRER5Hk8e2OjSCkUagLN0cWb7nGujSVXK6PFq98W3 ERLV5E49jR4q9hbW4fv6Jg6yMG5FrlokAg4gLNUr5ZvyqVufWtXYQQ3deyVNIrAd7Q/N BSPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689638756; x=1692230756; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=GlTzFTOI2nqBiepWppwa4cK7+u4fy0+JPjdioOJ59QA=; b=M2mlWmWMvJTltm52gSUp3PiekQRQE8ba3uqmsGbWN/rprtcRAwI6pnb5v1QQtuHMt/ BjkkFNdoTyDPTSHtoPM/oDgI8CGAWMByWs4K9WN+toaJ4cSQLCW8NhzJ5HUsJTzSv0yP Tpq7iNfDDuOaKV3r3YkT6V/zDUMfn82W9rjQCirAXMdRPGMlxzWteMNKa+fKdaBiGg9W rC5sPoHewMsKHi9fPYZBd61wDD+y1OcM/xXzuLAf+i8+A3XaZGI3WSkeYq+FlVQQgI5V W6Qgrb Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ABy/qLYBBowwpjz7U6Hpttap+nD0RwC8GvK1EeOLZNHCxx0mA7X/fxMp osgXdlu0ATF1Ae/ZdatLz/g= X-Google-Smtp-Source: APBJJlF3HfNwwjZ/rCFGdZ4kRyXmUA9j1pO+E1pOwt6VAsTW0BKmF4m24HhpBqlF5qYI9MdaIYCSEA== X-Received: by 2002:a05:6870:a90f:b0:1b7:3a31:593c with SMTP id eq15-20020a056870a90f00b001b73a31593cmr14711379oab.44.1689638755963; Mon, 17 Jul 2023 17:05:55 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:4188:0:b0:563:4373:e65a with SMTP id x130-20020a4a4188000000b005634373e65als822656ooa.1.-pod-prod-05-us; Mon, 17 Jul 2023 17:05:53 -0700 (PDT) X-Received: by 2002:a05:6830:1359:b0:6a5:de68:4526 with SMTP id r25-20020a056830135900b006a5de684526mr12552218otq.4.1689638753004; Mon, 17 Jul 2023 17:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689638752; cv=none; d=google.com; s=arc-20160816; b=VZBXSQo2WsGux/cjHiENc+UkxIyuuhCe3SHVlIOE5YoeFAmRPq8kV9umebzTE2MW+g bttnJQOUagSxIzHxXT0PptWFvua5QexW2uFP/vWU6Uq4ivaGx+k1DLG5qujGq6+PEAgI XIrjQRg/1pXY5g4VN7vEL6vYVOhGkAIQVaQljBUIzt3CkSn9s4Jx0ymvYWjB4lJjyWso MQQhJykziI6yHetZ+sizeIn9b6R0itxT8VivN+W83HsB1u/Up6858BmEhsTCb5NUk9zn h8SbpZomfvlt6t8FTVoGcBaX17EAbYfe1HkkTiqcMw7ObGCjeXUPANttODcKBSnvd16u yEgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :dkim-signature; bh=OzQBdm8El+rRWSRUxRZWNpMaE+4WglRCkmJDSLMrXDs=; fh=A7KGSvm30SBY9b2v+N53j+lkchMNZtkZbRzF4WqsV70=; b=L5CV77gHHUGrceB36P2Fkcq8/O4DTMN7kIf/vXYBBbNi6NDrSSlGGtU/VWpVitMI72 allT0nLBJCQ7DbdmBdgTYQ/Hx5R2nxYr3MB+yVPRC2zxhdFUbtPDJLKiTnvsTAz2lBpG /IsYYSw7WdRHcyRIjVqyCrulziqw/zgCAW5RugwEXoIJQ321aY1S2UrdTZby86H5yg8h w7wSUwUI4xRwMz3MlyU/5It6YLFkheRnh9bz0FkP21Ha1gNE/t424CYkOozsaPpNJljM kscKj3htJ620nTx4gp77nI7w/Ce/+ok7Y+uypAvxCyACvtYJHIraMhwp+ZfD8dXWu93s KwHA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=jHuce3av; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com. [2607:f8b0:4864:20::434]) by gmr-mx.google.com with ESMTPS id ca4-20020a056830610400b006b885923798si111108otb.2.2023.07.17.17.05.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Jul 2023 17:05:52 -0700 (PDT) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) client-ip=2607:f8b0:4864:20::434; Original-Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-66869feb7d1so3394938b3a.3 for ; Mon, 17 Jul 2023 17:05:52 -0700 (PDT) X-Received: by 2002:a05:6a20:320c:b0:12d:4c17:bb2d with SMTP id hl12-20020a056a20320c00b0012d4c17bb2dmr11621963pzc.26.1689638751585; Mon, 17 Jul 2023 17:05:51 -0700 (PDT) Original-Received: from smtpclient.apple ([2607:f140:4208:8000:9d94:fbad:aed8:9bf0]) by smtp.gmail.com with ESMTPSA id l23-20020a62be17000000b00682a8e600f0sm344180pff.35.2023.07.17.17.05.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jul 2023 17:05:51 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3731.600.7) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=jHuce3av; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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.io gmane.text.pandoc:32964 Archived-At: --Apple-Mail=_AE5CB3DF-8052-49CC-AFF4-04A617C4E47F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Your link [look here](#foo) should be generating an HTML anchor with hr= ef "#foo". Is this what you see? Second question: do you see the id=3D"foo" in the document you produced? I= f you're including this in a raw HTML block, it should be passed directly t= hrough. Another question is whether you perhaps have a heading named Foo -- that co= uld cause pandoc to autogenerate an id "foo". Pandoc wouldn't know about th= e id you set in your raw HTML block, otherwise it would take steps to avoid= duplicate ids. > On Jul 15, 2023, at 1:24 PM, Alberto Simoes wrote: >=20 > Hello >=20 > I am using a filter based on the tikz example in the python pandocfilters= documentation. > I am generating one id=3D"foo" and a \label{foo} in the html and latex ou= tput, respectively, for an internal link target. >=20 > Nevertheless, when I use a link to that block, with [Look here](#foo) th= e link is generated to the first page, and not to the raw block that has th= e label defined. >=20 > I suppose that Pandoc is creating an internal index of references before = generating the latex/html code (??) and is not aware that my RawBlock has a= link target. >=20 > What is the proper way to achieve a working link? > Thank you > Alberto >=20 > --=20 > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/c52b4685-004a-4e98-a620-974b6395c6acn%40googlegroups.com <= https://groups.google.com/d/msgid/pandoc-discuss/c52b4685-004a-4e98-a620-97= 4b6395c6acn%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter>. --=20 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 e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/50EAD892-479F-427D-9CCE-A6CE4B1E4A9C%40gmail.com. --Apple-Mail=_AE5CB3DF-8052-49CC-AFF4-04A617C4E47F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="UTF-8" Your link [look here](#foo) sh= ould be generating an HTML anchor <a> with href "#foo".
Is this w= hat you see?

Second question: do you see the id=3D= "foo" in the document you produced?  If you're including this in a raw= HTML block, it should be passed directly through.

Another question is whether you perhaps have a heading named Foo -- that c= ould cause pandoc to autogenerate an id "foo". Pandoc wouldn't know about t= he id you set in your raw HTML block, otherwise it would take steps to avoi= d duplicate ids.


On J= ul 15, 2023, at 1:24 PM, Alberto Simoes <hashashin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:<= /div>
Hello

=
I am using a filter based on the tikz example in the python pand= ocfilters documentation.
I am generating one id=3D"foo" and a \la= bel{foo} in the html and latex output, respectively, for an internal link t= arget.

Nevertheless, when I use a link to that blo= ck, with [Look here](#foo)  the link is generated to the first page, a= nd not to the raw block that has the label defined.

I suppose that Pandoc is creating an internal index of references before = generating the latex/html code (??) and is not aware that my RawBlock has a= link target.

What is the proper way to achieve a = working link?
Thank you
Alberto

--
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 e= mail to
pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.c= om/d/msgid/pandoc-discuss/c52b4685-004a-4e98-a620-974b6395c6acn%40googlegro= ups.com.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/p= andoc-discuss/50EAD892-479F-427D-9CCE-A6CE4B1E4A9C%40gmail.com.
--Apple-Mail=_AE5CB3DF-8052-49CC-AFF4-04A617C4E47F--