From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32965 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Alberto_Sim=C3=B5es?= Newsgroups: gmane.text.pandoc Subject: Re: Internal link to a RawBlock created via filter Date: Tue, 18 Jul 2023 08:57:28 +0100 Message-ID: References: <50EAD892-479F-427D-9CCE-A6CE4B1E4A9C@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000cd890a0600be45d3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21794"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCPPPLF75UIRBBEM3GSQMGQEB4P7LHI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jul 18 09:58:02 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f188.google.com ([209.85.215.188]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qLfar-0005PI-Tl for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 18 Jul 2023 09:58:02 +0200 Original-Received: by mail-pg1-f188.google.com with SMTP id 41be03b00d2f7-55c7bb27977sf4221381a12.0 for ; Tue, 18 Jul 2023 00:58:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689667080; cv=pass; d=google.com; s=arc-20160816; b=pmADfpokAfieJRx8fh+pyFTwoJ/uxqNNzCL9Ag/F3+HE1mRFN61vo6/d0etHnnppfw DB0b6qOOqBgnCvAUFHhE4iWev4HKb0aC5TDMgVF850RoP8oBmrhvFqPBlTeZmAbyN6ii Vcc8nvI222aRIe6MDjzPFUMRswv1TPzmrlCrBBTlsC92vNK2A3qQNryOVr4ohNb5pqFg RUwZV0jt5aNFq+/kHNaTj+Bu2DIxzW52mOCRNkvWkx/E81fA++tvQtaEjeXCE0tuuLlZ fbLxxJEa6+brijcYEDI2c6J521ipPIkbcQHi9/RD51jGgEr9DbhDhHZqaY0d9awUjuod tviA== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=JlZrueg6SutoTKM34qTFzCjvgIqr44sPuXbRte5PmBo=; fh=BdWCEHoA++TxB9vhFf1kKdxm1A0m4OlXUlCVWlNbA+0=; b=QW9r0GlgNRMDbekAsSt1Q2XKhlqdJjmFutBoVZOfJFn07PEiqd8wN12a0RSEqwqHfS klH+P/b09jGL3uqxmHmCMS7SdYNHd3th8kP23Vd7Y9vg+8YgJJqJUFEXdzhdBU545eXP sqvCAXVDJW5upwxatipPYX3HaXlkWgK2Fux3V6j8GWFOb4NTaHzdFCLXXXl8nWXqck/H 0lxf+PKi0EE8Xx4XrrCxgcsnLFq7CDdOKChOexURq5KBwZlHhnSgkIohBrG7TKpoC+3X 2DQB/TzYONZ/OLZz1H4LZ0tjX5C83KK3Kk+dd2a0REcyr8SQO/MonTi5CTqN+UBA4oWY Tqpg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=M71W4tYd; spf=pass (google.com: domain of hashashin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::f2c as permitted sender) smtp.mailfrom=hashashin-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=1689667080; x=1692259080; 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:to:subject :message-id:date:from:in-reply-to:references:mime-version:sender :from:to:cc:subject:date:message-id:reply-to; bh=JlZrueg6SutoTKM34qTFzCjvgIqr44sPuXbRte5PmBo=; b=M5XOnNAX7mSGki+cIFD3vYlyEFMZPPLGpAsXOeozErrvnTDa1Ezg+8scWmZY+akBAk TZ4Z6Hoe0nic7Bg3YtEMO7KfOPpsAuS9aPmz5LDJIAjvAVURJrd4v/2/85BOzU2w6qwn xW06Xth3vY5vr7EYkjzQLuByOxi/oGhmtBki0FBaqxlKZT616ts4zu6HSup4n4rbXrCH Jg395dkiO2htOokMa+peS85Eg+5cNVK5ygknQzcx0NBYbSqNpGXCGvGqCObfdaOdfilC ZVXLimFZ5Yy3rrfi2YK8uovKFhRpF57KLGddHXaTxgJXEPHGP/s7NCjNDF4USCEYQwij DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689667080; x=1692259080; 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:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=JlZrueg6SutoTKM34qTFzCjvgIqr44sPuXbRte5PmBo=; b=RavcIDRvbWM7/QKM/yPT1OCK3/xuZ4B/5qJwXd9ysRST3t0Iqi3FXhXOClb7h4SgY2 N71hRmgGipnxo/Q8pxxF8aueqm+VY565hkP83gMgZDIAhLwmReKx+XyqZBTutHMYOOXg lo6rY2ycFH53O73iGbxvC77vxqtvp701EfZ96Jva0fj70SynhiChcUms/3msoomtBOGz IddRSao7zA8+2B8gqGBGFAGTwo4X6XYO9/TRLbWxQfqx1znuiXiVR0RGOj2vGbxEmhT7 VEBlVX2SSV1B8L2UQStjD5Q3F2NTUbIrHZJUi8FRtsiY/XPMFsMTcYP0cpab5bP6/9V2 U/FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689667080; x=1692259080; 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:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=JlZrueg6SutoTKM34qTFzCjvgIqr44sPuXbRte5PmBo=; b=RZ+xbJpnnwAPQn4hSmV8LqapFfPsqx7Jlx9PpmF3e1zU6eM2buD/Ju0tAYAE+87K97 PENnPt8OsvrYjeU4noMuhbogjLhaticcC2AdD0sCzgusyvowBfWc1MF9ZtiSW2XaFkuR AGixaqUdnOFwhg/27xR+XWslj6Qfnm2XXueO2gkl26jZg+SwRU7SSx7B7pC+98bWXxRu ScaALkdzpcNi/Ec95lU8GFNqekVT6Lx2Fid8dujLxStmAdMHPQsOx0C7/Z3fOibIIcs3 k2VCCa Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ABy/qLbVmGr8Ryv0JlnPZqueiv5FE76XvgEcLw8uj2et56tiC+16iKji amBICSMatUZT9lAbK1hkHUE= X-Google-Smtp-Source: APBJJlGUZV7azWPGWsnUIlWiiWN/jlTzhNKtlLvJUOhODB4znYuFFzESFA5cLfkBkkQAH9S1MZ3quw== X-Received: by 2002:a05:6a20:7283:b0:12c:c614:f55 with SMTP id o3-20020a056a20728300b0012cc6140f55mr17547853pzk.43.1689667080190; Tue, 18 Jul 2023 00:58:00 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aa7:985d:0:b0:67e:3c6c:433a with SMTP id n29-20020aa7985d000000b0067e3c6c433als3539449pfq.1.-pod-prod-03-us; Tue, 18 Jul 2023 00:57:56 -0700 (PDT) X-Received: by 2002:a05:6a21:7883:b0:133:215e:746d with SMTP id bf3-20020a056a21788300b00133215e746dmr18294518pzc.41.1689667075751; Tue, 18 Jul 2023 00:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689667075; cv=none; d=google.com; s=arc-20160816; b=zRqwXUMql9LfTHA0NRvnuSUAbvULI5KGZjjbzVgKyKOBzOWKWr3/UzODYlUZoqjgnk 8D5achFAF4/wwLRV3h+7AWT84MFe++iNWv+Hs1/1lw8SQZHYSNfzphyplm+ZBYTTIxYJ RW0ACGjH6VUxivhDwIBzJ4L5bNu4vlss5o5b/FBTA8vAzdLa6J94a2podH1ngDzzJYBH i3Tp5J1muBctlptutJMprMafHJkytx2i4IfwhxQmn/mYQnGLCxSFH43wTGUEBqEfiptT rL51462UVXrz0DHtjxCwGKkKLMSqJJBbv10uOT6Y/BW/xucFLua/tqKzpiDSbcZcTd3x L70g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bUCVsfSCTNFnuA3BhPYnHfiy4tZb19HJwwkRazv75Yc=; fh=BdWCEHoA++TxB9vhFf1kKdxm1A0m4OlXUlCVWlNbA+0=; b=DSVDRR1wbf9qCmiIz3KQpZER5JcMbRmt56Lza2lvijPz8ZzZzNmO/1iWI5Q/T0Vi3R EGM8ltv5/zt2+svQtYGeV6ZFLEWHNugQPNxHgIsbVWLWg9lonXTHClCjcEL/4vawxwP0 OwlNh3dWV9NpLGxv+P0tlDaUQBJgxINUK7iKXkGoCkSp4HGEeWgrNNR4/Zi8nYaZ19xf IDm5ju1nsJ/wr31jhwj3ANpPmHUeV/iFTaT3Bw9kE7iioUnEtQPxKT+c4TADG9cKf8bN eNnXiW+8ZhKY2MrU15iaqCq9ORFVIVXn6Tvu204i7KgDBG6up/yKjqqVlIFEsAN+du2i B+PA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=M71W4tYd; spf=pass (google.com: domain of hashashin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::f2c as permitted sender) smtp.mailfrom=hashashin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com. [2607:f8b0:4864:20::f2c]) by gmr-mx.google.com with ESMTPS id bi8-20020a170902bf0800b001bb2c4018a6si70341plb.2.2023.07.18.00.57.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Jul 2023 00:57:55 -0700 (PDT) Received-SPF: pass (google.com: domain of hashashin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::f2c as permitted sender) client-ip=2607:f8b0:4864:20::f2c; Original-Received: by mail-qv1-xf2c.google.com with SMTP id 6a1803df08f44-636465d3966so7616276d6.1 for ; Tue, 18 Jul 2023 00:57:55 -0700 (PDT) X-Received: by 2002:a05:6214:300f:b0:621:65de:f60c with SMTP id ke15-20020a056214300f00b0062165def60cmr10613240qvb.3.1689667075146; Tue, 18 Jul 2023 00:57:55 -0700 (PDT) In-Reply-To: <50EAD892-479F-427D-9CCE-A6CE4B1E4A9C-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: hashashin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=M71W4tYd; spf=pass (google.com: domain of hashashin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::f2c as permitted sender) smtp.mailfrom=hashashin-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:32965 Archived-At: --000000000000cd890a0600be45d3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, John The issue was with LaTeX and the hyperref package. That was fixed, thank you. Alberto On Tue, Jul 18, 2023 at 1:05=E2=80=AFAM John MacFarlane wrote: > Your link [look here](#foo) should be generating an HTML anchor with > href "#foo". > Is this what 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 > could cause pandoc to autogenerate an id "foo". Pandoc wouldn't know abou= t > the 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: > > Hello > > 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 > output, respectively, for an internal link target. > > 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. > > 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 > email 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/c52b4685-004a-4e98-a620-= 974b6395c6acn%40googlegroups.com > > . > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/pandoc-discuss/P9wQCp25k8k/unsubscribe. > To unsubscribe from this group and all its topics, send an email 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 > > . > --=20 Alberto Sim=C3=B5es --=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/CAAkRyrtncj6H5U746Z35HZbJXPcmtOW8h_nU_EsuNWc93DMmXg%40mail.g= mail.com. --000000000000cd890a0600be45d3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello, John

The issue was wi= th LaTeX and the hyperref package. That was fixed, thank you.
Alb= erto

Your = link [look here](#foo) should be generating an HTML anchor <a> with h= ref "#foo".
Is this what you see?

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

Another question is wheth= er you perhaps have a heading named Foo -- that could cause pandoc to autog= enerate an id "foo". Pandoc wouldn't know about the id you se= t in your raw HTML block, otherwise it would take steps to avoid duplicate = ids.


On Jul 15, 2023,= at 1:24 PM, Alberto Simoes <hashashin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Hello

I am using a filter based on the tikz example in th= e python pandocfilters documentation.
I am generating one id=3D&q= uot;foo" and a \label{foo} in the html and latex output, respectively,= for an internal link target.

Nevertheless, when I= use a link to that block, with [Look here](#foo)=C2=A0 the link is generat= ed to the first page, and not to the raw block that has the label defined.<= /div>

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

What is the p= roper way to achieve a working link?
Thank you
Alberto<= br>

--
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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https= ://groups.google.com/d/msgid/pandoc-discuss/c52b4685-004a-4e98-a620-974b639= 5c6acn%40googlegroups.com.

--
You received this message because you are subscribed to a topic in the Goog= le Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://g= roups.google.com/d/topic/pandoc-discuss/P9wQCp25k8k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to p= andoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/50EAD892-479F-427D-9CCE-A6CE4B1E4A9C%40= gmail.com.


--
Alberto Sim=C3=B5es

--
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/pandoc-discuss/CAAkRyrtncj6H5U746Z35HZbJXPcmtOW8h_nU_Esu= NWc93DMmXg%40mail.gmail.com.
--000000000000cd890a0600be45d3--