From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28429 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Shir Newsgroups: gmane.text.pandoc Subject: `auto_identifiers` causing duplicate identifiers Date: Sun, 23 May 2021 23:57:15 -0700 (PDT) Message-ID: <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_3840_1751092625.1621839435270" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14510"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDHINQGCQMNBBTE4VWCQMGQE46HXFRQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 24 08:57:20 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f60.google.com ([209.85.210.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ll4Wc-0003Y4-Fc for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 24 May 2021 08:57:18 +0200 Original-Received: by mail-ot1-f60.google.com with SMTP id r16-20020a0568301350b0290363e6a9392fsf2079320otq.13 for ; Sun, 23 May 2021 23:57:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=SOwZMuUM/vt0ewT2pcx2HSL6exSPpR3QbJJI5Cs8swc=; b=IVAiW4mFfSACRxiG+3gMATHQQ1BDJlasIyJ4zfcbVaWhWY0xsSpKr7YNsdclANDneJ 274VU52yyjIqyXeCMrYzLsrXvE9mFDqNgeHnTJgzJfODUE+962CS5tH9BKSNL15Ia5/D j2OdOlLzXulm6EM7N6rr4bzX+NUX+LsfnknDk+Ce1knbzPzBvAdFT0giZzPkbtmVUi46 n8fALD9tH79tonS9ENmOYjdCbos/4a04s1iWAWGkDrZvL/dcG76hdGasPylvvQBYV4Lo 42FfI8IBVM/H+d09MgfX4rNuzO2RGK424bvaO/e4fld+YyH12wWGiau+2+l6WRAijyiG lkgA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=SOwZMuUM/vt0ewT2pcx2HSL6exSPpR3QbJJI5Cs8swc=; b=PCGrZV2Qb3P2IagvXM6CTLK2KF0b6b6owUCc2tm5F0Q+PPNvBv9OgNgnG07hUdVQQO cR7MrT+jqMGTdAuu/8ahoYho9dBtDPkkQWGy8eFhBLCzzKhpDvMO2CrQzUMFhkZ06iXO MQ2sijtj+hFL5Ik95xIyrB+ZPYAJRPd2BKbbKCAJ4qWk4CN40oMt6JOlkumsceiC0ZDK EPyGHw0pwiZtW46Ft/sUYSFm5Lekv0OhR3B+iRMK6UvFqDDxCpeR9thKWo/98s6A9AV2 KzEGUFAWCfzPi0MVPm9UxjggKtIFfrv1SXNith9anr0xao+X6eB1toK8jgDvAk1W2Eqw iiiQ== 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: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=SOwZMuUM/vt0ewT2pcx2HSL6exSPpR3QbJJI5Cs8swc=; b=kUROmaY0u5NMH15Z9bEFt9UBdesBcmk/oy5XLhIDdAIDfLtYN9XNxSojVg8TK7IbAl gm3MCAWt8hBLBnCk0w1l1RpUMrgt4W8CL5qyCmSwu2XkXN/yQxvjtnosMAvC7JtsiZVJ VfRFt8J4GAbkwIyAzZ3NVy2CHZsV+FNpqQbboOcwQ1zaGZ1cgIrE+H+CHVYY/9hk4R+W 9xBIKyUN1qoZ/EM8cKMcBWHHz0gt7hbrukI/KW9rwdJW8qUH41RIx/yjXz7Q7hoVLd/H BbOF/L25+15B/F1djrEAP/UnlmkuJHzNMx02giWj0/AtUaxn0lJQ85Xih0K1OjHGnStw 4ULA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532NvAA59g6rZgWVqItb2505nqJnyMK0/bOLvVGEe/60Vqrootaf 5BjR5okBjco8qT3jv4Owil8= X-Google-Smtp-Source: ABdhPJxP7a0dj2OX8ysK2voDCCZPXBz78p/eMF4//JepiY8ZrFSoHLLaQremXnutOV46OtmK52Y86Q== X-Received: by 2002:a9d:7095:: with SMTP id l21mr15949970otj.213.1621839437546; Sun, 23 May 2021 23:57:17 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:5d05:: with SMTP id r5ls804812oib.7.gmail; Sun, 23 May 2021 23:57:16 -0700 (PDT) X-Received: by 2002:a05:6808:1404:: with SMTP id w4mr6506662oiv.53.1621839435884; Sun, 23 May 2021 23:57:15 -0700 (PDT) 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:28429 Archived-At: ------=_Part_3840_1751092625.1621839435270 Content-Type: multipart/alternative; boundary="----=_Part_3841_1540174577.1621839435270" ------=_Part_3841_1540174577.1621839435270 Content-Type: text/plain; charset="UTF-8" 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-discuss+unsubscribe-/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. ------=_Part_3841_1540174577.1621839435270 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have a `test.md` that looks like this:

```<= /div>
# test

# test {#test}
```

=
I ran `pandoc test.md --to latex --from markdown` and expected t= o get the following:

```
\hypertarget{test= }{%
\section{test}\label{test-1}}

\hypertarget{test}{%
\sectio= n{test}\label{test}}
```

Instead, I = got:

```
[WARNING] Duplicate i= dentifier 'test' at line 6 column 1
\hypertarget{test}{%
\section{tes= t}\label{test}}

\hypertarget{test}{%
\section{test}\label{test}}<= br>
```

Turning `auto_identifiers` off "= fixes" this by not giving the first instance a label. But shouldn't `auto_i= dentifiers` be able to automatically label headings while taking into accou= nt existing IDs?

--
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/099f0289-7ff2-4f84-b983-8af49f257915n%40googlegroups.= com.
------=_Part_3841_1540174577.1621839435270-- ------=_Part_3840_1751092625.1621839435270--