From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29141 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: All numeric heading identifiers Date: Sun, 29 Aug 2021 19:06:18 -0700 Message-ID: References: <70061a93-5913-4668-8bac-3bdaedb9c710n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="958"; mail-complaints-to="usenet@ciao.gmane.io" To: "andreas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBJ72WCEQMGQERGCMHKQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Aug 30 04:06:34 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f187.google.com ([209.85.210.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mKWh0-000AXQ-G5 for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 30 Aug 2021 04:06:34 +0200 Original-Received: by mail-pf1-f187.google.com with SMTP id z2-20020a626502000000b003fe1e4314d2sf755078pfb.0 for ; Sun, 29 Aug 2021 19:06:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1630289193; cv=pass; d=google.com; s=arc-20160816; b=gldoH8jYZRI0N5FTpmvYORVhHrDP6RlnMkqcKivzjqDpF7Je6OAtJaGZD5Yzia6Z0J 7ucHLYzE3cIIkukW8m0EpwadikF8M8GjtXHn0B+xxIj5FiqqbbdQBHsWCeCrRcL7eoub 4Q1+rCVdn0bEbpZYrbmD/v1eMxsDZxmO6TXx6PxaBvxnheRtQqegZvjdIMOofPuBCLCn /FscgQsT+Ro/86hgWbLDXvM0nNere7lQlTRW4W70MFf/I2LVw5kfD3bFINkfJtBWsnKb 0ocBEaovbBefbK76wl3h1y0EtRKVFUSHptmyuCK/PGbkYnq3lwfQPU0HK5ZjP98Slgtp p6Mg== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=nY2xXi3X8kfDhZeozizxBHIG71nENrGlJF9VA/U6R18=; b=tqZCy8obsn1yx1W2MR4bRby5orhVm/6GXokdIH8qntbXqzNZlI2az9lUVEth+NkAd5 DqcMnh2OH674BdaTFDC2IrWRjxWJMRVWUbVlRoGee5VTFAytvw5iOaW1kF0Nj10qOWHe 4mNtQmOxmOXKqRMUAsh6OCIpYjpA94NIOMXH7cUUNs43uO4zDO4YqXWgkhlxa2o4I6ze mx4wfSxoZNJyviG4W0TJC9GkenJPKOrtS7XK5dDmx6YyIBS0iW3JKrVBMj0YwSW/spMf LsAYdp8xWIP858b0kr19+8axTzeeaIgail/5jaqKIEUcGp1Fj3HheN9f/UK/Cwri3muU uGvg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=LWgsRHvy; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::634 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=nY2xXi3X8kfDhZeozizxBHIG71nENrGlJF9VA/U6R18=; b=PeZxE6YzjA8TUJzsonNVA3JOg9AVomrmtuHKQTnCDt5ivqmLBpjZZ2/zNlx0LNiuSc 4M/xTNAnTlf3GkvrTi4trY4xlyUWy0pSeIV9dQfEukumhDX7uok1n9NxkLWOGCPrYBBz 1h6+oxbeQS5NyxPH+6Fws0Jcl30XQ6eAGlgLUc6TcYqSWM3HpGx5vlP6gn5J3p+W+EEI VDc1axrPglLgE5wbdtjM8kIX3LNxz5oiHEcwMZ2KLmVKIWy6VLtglNxo5x/i6nu7yJSo +ydO2MhqgLVXD5/ydIXAhaKnO/eeY/M6ERj8DWncGGODrxPGnh67eJnkWt7xFZoQp+LF XMXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=nY2xXi3X8kfDhZeozizxBHIG71nENrGlJF9VA/U6R18=; b=FMEuA5pWSZVfIORi4azfemCLy42oHKojFiGI0jkUcVAJoSFQ/BUnTxV8qcqjfq0tvD eVmsJKTRgOtzFT3HtMOWe5UxVf5/zeyoeJBkrbNTjbhBXtJXQf30QKfhLTAbC9ypbuXy 7+FJBIsUaId2+AuFSL3Eu4PgBeTkdSzZos/U7lXaO3r1unGxXq4c7HQaCUqTUxJCFxxE NFi8hZQjDsVc2VO1LUc8tqUYMrlgS/Ao0IvUTLOLoG/X/DlWiSLKxQ6JioC81BXcn84S jzVeGf4U1UMvR3kPsQnBBwQ//syEHzIcXR0T09d43lYFtoRj8dY4Bo6qYra3WssSShoS vXwQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533zGxgG6hjXMIV4LjAdpzP6KjOz1uchbNhdSEFd09BGfOxktGFx QAlUFP7hGgVr+ZJgCsDZl74= X-Google-Smtp-Source: ABdhPJzuIdyYSmnoMUxxuYHvI4WfhW5UWQUHyY6L0L4dAs+CzDPUnDQ/nwSIVJufavWino8syLBXyQ== X-Received: by 2002:a62:3887:0:b0:3f2:6c5a:8a92 with SMTP id f129-20020a623887000000b003f26c5a8a92mr18732340pfa.8.1630289193219; Sun, 29 Aug 2021 19:06:33 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a65:520c:: with SMTP id o12ls6128539pgp.6.gmail; Sun, 29 Aug 2021 19:06:31 -0700 (PDT) X-Received: by 2002:aa7:83c6:0:b029:3e0:1f64:6f75 with SMTP id j6-20020aa783c60000b02903e01f646f75mr20567002pfn.69.1630289190995; Sun, 29 Aug 2021 19:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630289190; cv=none; d=google.com; s=arc-20160816; b=Wmgb1gObgfhswCDA1jMKhp/VP2i+/YzswzvoSHeGIGNSL7ImxLmf2LcY6Ig5trHmM2 WXnb/d3kr8ave4pn2biCjFi57Pv8CMiYyu2rJtxNkTBx76dG2j0xqDelUwzF7dS3UwBc 2m+Cg+k1HD04LgRlO5HMyJXGwHiXBU5TgT3RUJILo5yE07HdxDFqTg/blVS+lsmupB+n hfTzO76jpbQm77uVqj3xeso7w0Bi58HvcqIi/IW4a+6ql9xMRmEn58lBTnPI2jSPFu3G +A1n3XgtpKQ5MJqgBAvWr3f04jbnmRjqQglitu4l+cFiWwdnC2drIGnt/pk5VemfkAqA GTNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=SEbX72mgKnFc/EnOpRwKTkyNPfBTD9jOve7ih5Fs66g=; b=oPDtMoozu1P7GCe+BKL+If3WlCzEQk9tLuf919RMBB+vlliu2e7Wc6pKYGNLErudBY pj6hZdWxVsM7yRvQk2iPRw4rQvH/zEXADn1SJPC7aS5wD+sQ2x2qbPPU/Y9Mki2mnDIm o/+OA/tCdcDDO98PBZt/vdSPboPmFqBMbhB3t0EEa+8slGdlPwO2pggmj9mTCUFvchOu xtRsXgQvbZjMKs3ntvXhkFp5IcVgFirXYfijKufm2Gqo46MTVmwfHnJnVQR74kAvn2iI RLrBk8B1Nbs102EG2jjxj4ic+gKw7qMnweEsXxU11WTfQj7EAlfJgAWl2+UBy1ipbtMp 7WNA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=LWgsRHvy; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::634 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com. [2607:f8b0:4864:20::634]) by gmr-mx.google.com with ESMTPS id k15si866208pll.3.2021.08.29.19.06.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 29 Aug 2021 19:06:30 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::634 as permitted sender) client-ip=2607:f8b0:4864:20::634; Original-Received: by mail-pl1-x634.google.com with SMTP id m17so7636654plc.6 for ; Sun, 29 Aug 2021 19:06:30 -0700 (PDT) X-Received: by 2002:a17:90b:1017:: with SMTP id gm23mr37091361pjb.6.1630289190263; Sun, 29 Aug 2021 19:06:30 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id r3sm12466802pff.119.2021.08.29.19.06.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Aug 2021 19:06:29 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id EA72AA2BC; Sun, 29 Aug 2021 22:06:18 -0400 (EDT) In-Reply-To: <70061a93-5913-4668-8bac-3bdaedb9c710n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=LWgsRHvy; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::634 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:29141 Archived-At: When the attribute syntax was introduced, the decision was made to require that identifiers start with a letter. That is required for both HTML4 and XML -- and hence for XHTML5, which we aim for in HTML output (so that this output is "polyglot," and also so that it can be used in EPUB3, which requires XHTML5). This applies both to autogenerated and explicitly given ids. "andreas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" writes: > I read the sections Heading Identifiers and Extension: auto_identifiers > in the manual. > So, I think I understand why the following produces `id="section"` > > $ printf '# 47\n' | pandoc >

47

> > But why is it that I cannot make Pandoc use a specific identifier like in > > $ printf '# 47 {#47}\n' | pandoc >

47 {#47}

> > I expected Pandoc to produce `id="47"`. > > BTW, I came upon this because I was wondering how to reference ISO dates in > headers, like > > ## 2021-08-29 > > because > > ## 2021-08-29 {#2021-08-29} > > produces `id="section"` too. > > -- > 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/70061a93-5913-4668-8bac-3bdaedb9c710n%40googlegroups.com.