From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28438 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Shir Newsgroups: gmane.text.pandoc Subject: Re: `auto_identifiers` causing duplicate identifiers Date: Mon, 24 May 2021 18:00:37 -0700 (PDT) Message-ID: References: <099f0289-7ff2-4f84-b983-8af49f257915n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1092_834581426.1621904437044" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25120"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDHINQGCQMNBBNUYWGCQMGQEXGWHMNA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue May 25 03:00:41 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f64.google.com ([209.85.161.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1llLR2-0006Kx-8l for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 25 May 2021 03:00:40 +0200 Original-Received: by mail-oo1-f64.google.com with SMTP id z6-20020a4ad1a60000b029020e858bcefbsf15513913oor.17 for ; Mon, 24 May 2021 18:00:40 -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=ux46GqWxupbHu2GpXdCxwuUImkbwwZ6PTG3w8kRzQco=; b=a9HOCHUOAjNzgWe0luzNCRlSFD08c0xRMX58CuAm2agPlNUilaQ98hJT9q4lLh9WeP 0UahaNbowMpBkWMmIMxJMmigKzTogjVziFRU3WARk9tkRDAfJi0qpaFesK6Z/4Fbfz/F FO7i9EhaaMMOyJgz+ZGNrXUBRKejNMi9eCyXu8GhYnhuyL2yfqF458PQbWg3H/Vh1rLU EnC0oW1Q8zqm3jxLb4Gj81iUKk7+aD7kgvuoJ7isgu+Adk6qeCzmRqOX3CAW4FVEgtZf aQrAOiXxvhIKvxkM+Sba/o3liYlXiT2NBne2mpbSlNj6T/6xEkJXf50h3j11xrmUjXTd NLWQ== 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=ux46GqWxupbHu2GpXdCxwuUImkbwwZ6PTG3w8kRzQco=; b=oxHfqUqGdtGUuKKosMoVrYG6que5ZBS6G03okJ76zDQlemM8fG2cjOKEUL3pLqYbr7 Q4fdIpt4lvcv06F8j4tieZvlet5BNZt+glanC7qoAFHH4/6kpzaFpRvt1+cYqwQv7S8L VyctgAlvItknH2YnVLuQpMEV9Y4zG60Rsix/QBt2bGtlkbA5iRRAHXMQUEpLVJGeGESa f7ObokNdAkCa7FWwqAA9R8NeZ9oyvQ4zRsMugc4Q0n3BFU8AzviPy/t/P+j80igvwIX5 q+dT5Ux3t6BZeFmlZpl/T3UIgHUBF1GbZGSDb/wXnZ6CS8nf3SRHiu5ytRzVqGRRaWWK UidA== 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=ux46GqWxupbHu2GpXdCxwuUImkbwwZ6PTG3w8kRzQco=; b=OX+dzEUjyc6Y3nBlIKLSOauPnev0Uoqkd+/dEmPuMiwiaBBoN/PpL6HRZaM9/jKdnN qut1wbuLUI3k4d3ggphwjgpf2qTHVSebqrdELL/ZYoatwgvrH17sObKZmZd/8dxYMK8u h+biGMpVdF6/8agWqdPx39HZ5F8McR9/ShY3tUjvT9czczClmGb4uLgxIQaDDcoYec+y K9miYpzeDm6l48yK1g4R5dUCdd25gDT7O6FgnZO1EIR2JCuDdCADBo2plJzf11xCwwl4 9Mn+ps/djYJacx6rAiQc38wnvrgRKH/GvGCEurCqhsh1Z/BA5rKhKWg/vPMmsSoKBfv7 UWrQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530t7hHbSUSG7EXAceEXaDILhTmbkrE5fl98QB6CvV64Pv9K1BU7 RWzc2ZOeBD67rqr4mpRX8gs= X-Google-Smtp-Source: ABdhPJzSydda/ED4LeHEaNGQsZzi/bOyhnDGl/7vYY1UneIuTUe99sHuaK+25dPOI+P0vK7KQQ/NCA== X-Received: by 2002:a9d:7d12:: with SMTP id v18mr20912371otn.221.1621904439303; Mon, 24 May 2021 18:00:39 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:83c2:: with SMTP id r2ls1176234oog.7.gmail; Mon, 24 May 2021 18:00:37 -0700 (PDT) X-Received: by 2002:a4a:c88f:: with SMTP id t15mr20081458ooq.84.1621904437563; Mon, 24 May 2021 18:00:37 -0700 (PDT) In-Reply-To: X-Original-Sender: shirdekel94-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:28438 Archived-At: ------=_Part_1092_834581426.1621904437044 Content-Type: multipart/alternative; boundary="----=_Part_1093_1636404669.1621904437044" ------=_Part_1093_1636404669.1621904437044 Content-Type: text/plain; charset="UTF-8" Thanks, did so here: https://github.com/jgm/pandoc/issues/7312. On Tuesday, 25 May 2021 at 04:32:42 UTC+10 John MacFarlane wrote: > > The current design expects that, either you're going to > manually specify identifiers when you need them, or you'll > use auto_identifiers. The mix can be problematic. > > The problem is that auto_identifiers is enabled by default, > and using explicit identifiers doesn't turn it off. > > Why don't you submit this as a bug report on GitHub? > > Shir writes: > > > I have a `test.md` that looks like this: > > > > ``` > > # test > > > > # test {#test} > > ``` > > > > I ran `pandoc test.md --to latex --from markdown` and expected to get > the > > following: > > > > ``` > > \hypertarget{test}{% > > \section{test}\label{test-1}} > > > > \hypertarget{test}{% > > \section{test}\label{test}} > > ``` > > > > Instead, I got: > > > > ``` > > [WARNING] Duplicate identifier 'test' at line 6 column 1 > > \hypertarget{test}{% > > \section{test}\label{test}} > > > > \hypertarget{test}{% > > \section{test}\label{test}} > > ``` > > > > Turning `auto_identifiers` off "fixes" this by not giving the first > > instance a label. But shouldn't `auto_identifiers` be able to > automatically > > label headings while taking into account existing IDs? > > > > -- > > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/099f0289-7ff2-4f84-b983-8af49f257915n%40googlegroups.com > . > -- 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/d14c158a-b9d9-4990-bde1-467acbe767een%40googlegroups.com. ------=_Part_1093_1636404669.1621904437044 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks, did so here: https://github.com/jgm/pandoc/issues/7312.

On Tuesday, 2= 5 May 2021 at 04:32:42 UTC+10 John MacFarlane wrote:

The current design expects that, either you're going to
manually specify identifiers when you need them, or you'll
use auto_identifiers. The mix can be problematic.

The problem is that auto_identifiers is enabled by default,
and using explicit identifiers doesn't turn it off.

Why don't you submit this as a bug report on GitHub?

Shir <shird...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<= /a>> writes:

> I have a `test.md` that looks like this:
>
> ```
> # test
>
> # test {#test}
> ```
>
> I ran `pandoc test.md --to latex --from markdown` and expected to = get the=20
> following:
>
> ```
> \hypertarget{test}{%
> \section{test}\label{test-1}}
>
> \hypertarget{test}{%
> \section{test}\label{test}}
> ```
>
> Instead, I got:
>
> ```
> [WARNING] Duplicate identifier 'test' at line 6 column 1
> \hypertarget{test}{%
> \section{test}\label{test}}
>
> \hypertarget{test}{%
> \section{test}\label{test}}
> ```
>
> Turning `auto_identifiers` off "fixes" this by not givin= g the first=20
> instance a label. But shouldn't `auto_identifiers` be able to = automatically=20
> label headings while taking into account existing IDs?
>
> --=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-discus..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/0= 99f0289-7ff2-4f84-b983-8af49f257915n%40googlegroups.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/pandoc-discuss/d14c158a-b9d9-4990-bde1-467acbe767een%40googlegroups.= com.
------=_Part_1093_1636404669.1621904437044-- ------=_Part_1092_834581426.1621904437044--