From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32959 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alberto Simoes Newsgroups: gmane.text.pandoc Subject: Internal link to a RawBlock created via filter Date: Sat, 15 Jul 2023 13:24:08 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1336_254253856.1689452648161" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11524"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCPPPLF75UIRB2MAZSSQMGQE6J3X42Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Jul 15 22:24:15 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f58.google.com ([209.85.161.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qKloL-0002iQ-4Y for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 15 Jul 2023 22:24:13 +0200 Original-Received: by mail-oo1-f58.google.com with SMTP id 006d021491bc7-566ed1c021bsf3497240eaf.3 for ; Sat, 15 Jul 2023 13:24:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1689452652; x=1692044652; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=2Jh9q+QWjIlg1xEqYlorHbhVdHM+ib/XdSSgN/0q+Mg=; b=Fa2pF5BtoY4ldI1sXOhNvfmbeWMWEbnT/X8X8/fQpfVcvtNOTmndpzaf60OXJSsoXm 3ysFGQnEJe3K1O2TgFQhJ/DCfK995zSV/8vAotM79brfRNDo7W+hjnC7nS0mgoTJ0+IX KvIHbYCkbld1MCqKlC+O7s/ZdqLWBawj+T6KS+VHAxqwtaIL9luDrAFtcjPoAqEqX4uB zonAFz35kLNMk3576zqCpDpMjdDO4hEdtcRsqQeyqqaBxkk4/UQRURdXtQOgqx7ip8aH PJv+hqvYv5wtLBS+GQ4Vw934TB2Vt+ScMJGfY/OmMtbIp+7kqUqWwklL0C3QCrpO28dD oCnQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689452652; x=1692044652; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=2Jh9q+QWjIlg1xEqYlorHbhVdHM+ib/XdSSgN/0q+Mg=; b=LAqLhAeyHLU4I/UxZD5ohq/SbJ7VwT95nvwHn9wY96JeKj8JykhFdYlApCmIIjtDet z/j4akheBGwDdhv95cpl4jOeIj43No8Uoa4vg0Lw+/BJpPsiSxrvcnfhfsPHn4s3MECM v9bXm66M3hQk41mKfdP4ecn6cK6lcVKlGmaUE1c7uuJjltSH8BfT+fNsvg8V9BujQ/su LWQyyPrxG3CQ3vqPhJ06R1mdY5XlPLuxUClRvB1hjCj7tzVucuxqb6Ni5LfYGt+4MwUT WFzvg2x+W6M4emp3kLHbO5g3afA9flKdH8eDrqapcxZz0CIUJDsGD1N6an6XToVYSx1D ytyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689452652; x=1692044652; 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-sender:mime-version:subject:message-id:to:from:date :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=2Jh9q+QWjIlg1xEqYlorHbhVdHM+ib/XdSSgN/0q+Mg=; b=LHKa+8sm9cbPbUt/TO5D7yW3m7GuWUBUZse1xPeTXjurZuO6sy4DTO0YlBJbAA6RKU D31ALFTrU6TSBNFEOIYBlR36BXlkFYMq8HhUGpbStv7Et1rdH5XCmA+tciWWQXK8zFGw cf0QOmnbRQeo/9jwfMwIKb1bV/If2dQvh7uLRgTNaqxJSpS/hX1qwQQRFpmkMz3YMdXz IVLuGlW0vwNVtd8mr8h9i1/BtkKbWs/HwX7mCs1KbNJfq/1lnQeluDlHOxPNcIDG0Im5 NXpwJLe4+iHjsplT+IwARKqkzhAGeQy4ZKk3KQ/+khST4JLCXc8Kc7bAIdRCo3wuLWTl Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ABy/qLaOl2teRZPJq6rVEjXHl2qrcYc4mHRVYTzqQKXPK4o3z2ItDrGz r5gVYfOIN/5y7CSOEDxhosw= X-Google-Smtp-Source: APBJJlG1v7K8BYjfDYEzF1R7sq5C3ylDi8N8nbC6Rn557Ux1IbvLLS2O6LqMIx6hxlQ91wBhG5/ZbA== X-Received: by 2002:a05:6871:6a1:b0:1b7:5f2e:b9d0 with SMTP id l33-20020a05687106a100b001b75f2eb9d0mr8232452oao.26.1689452652001; Sat, 15 Jul 2023 13:24:12 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:4205:b0:19f:9f28:a580 with SMTP id u5-20020a056870420500b0019f9f28a580ls880770oac.1.-pod-prod-05-us; Sat, 15 Jul 2023 13:24:08 -0700 (PDT) X-Received: by 2002:a05:6870:704:b0:1b1:6224:72fb with SMTP id ea4-20020a056870070400b001b1622472fbmr6996644oab.11.1689452648776; Sat, 15 Jul 2023 13:24:08 -0700 (PDT) X-Original-Sender: hashashin-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.io gmane.text.pandoc:32959 Archived-At: ------=_Part_1336_254253856.1689452648161 Content-Type: multipart/alternative; boundary="----=_Part_1337_1137950966.1689452648161" ------=_Part_1337_1137950966.1689452648161 Content-Type: text/plain; charset="UTF-8" Hello I am using a filter based on the tikz example in the python pandocfilters documentation. I am generating one id="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) the link is generated to the first page, and 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 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. ------=_Part_1337_1137950966.1689452648161 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello

I am using a filter based on the tikz= example in the python pandocfilters documentation.
I am generati= ng one id=3D"foo" and a \label{foo} in the html and latex output, respectiv= ely, for an internal link target.

Nevertheless, = when I use a link to that block, with [Look here](#foo)=C2=A0 the link is g= enerated to the first page, and not to the raw block that has the label def= ined.

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

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

--
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/c52b4685-004a-4e98-a620-974b6395c6acn%40googlegroups.= com.
------=_Part_1337_1137950966.1689452648161-- ------=_Part_1336_254253856.1689452648161--