From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29979 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: section ids disappear with lua filter Date: Sat, 15 Jan 2022 14:33:21 +0100 Message-ID: <87fsppdsrf.fsf@zeitkraut.de> References: 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="1692"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBLE4ROHQMGQE2OUXM4I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Jan 15 14:37:50 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f60.google.com ([209.85.128.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n8jFe-0000Hg-Ek for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 15 Jan 2022 14:37:50 +0100 Original-Received: by mail-wm1-f60.google.com with SMTP id c5-20020a1c3505000000b00345c92c27c6sf9893734wma.2 for ; Sat, 15 Jan 2022 05:37:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1642253870; cv=pass; d=google.com; s=arc-20160816; b=F1eG8bSEwElplDcbJkg+R7smCcYy2v+HYesIlsi+/ZhAagQIIDUt+p1TseWuo/nuQt Uuf6E01Dm33xV+Efo52R1XOFjRbf3VTyQApz04jXTekjwZj8dIsll8MU56IZXfBo3ywO 2i5S8SejdvdewkCd9ukFYyLSwOjw5SA43FEywmCPauDlGidyGUAGDwXKBZSOmCw1BazD 4yDt6990AdjUlanL0VqSHUxQIEhJ+9hxwol0XSwhsxxX6PqAu/PLoKJoaAzVCxCpTrm/ y3aOlVgp+Hxu0vCIUzXyQiAWu2S+WDbGotJmGlC97K5KPkuA/1ABWGkMnJMpqM6ZiNTJ CFLQ== 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 :in-reply-to:date:subject:to:from:references:sender:dkim-signature; bh=edYCdzTQAZ1gknCtjvo4VzG/F9+mc7isWGbHAt+jwLw=; b=Xfd6ccYWNegYnNWvf/mPznlR4sqY0xt5f5nGUwkJYyAbTO78JJBJjedBbiijDL2VNg VpQbN1duahlg1kecYClWpFPuzdA6Ps9xLuZbxPYCa79OJhCnp1b2EJDMvlfLoeX1yqCz clpWetc772Mx6H5t8ACM4Cjjop5PtfkAIVwDr344MyvezrKk+N7AcXgLywNmA5GJ7qRN vR/rAiau3AdP6+F+z9oIHqtktrTeiq1gTjSqI/u4UQ4a7MLAzgDff9QjKxCgWxaaX9dC 9IxmhLG4jDAlrmmWRaeLV+fveP5ORrQMEkKSNVFNMAUjl9M3NVFPscosNrsZ9JaF94HH UrDg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:references:from:to:subject:date:in-reply-to: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=edYCdzTQAZ1gknCtjvo4VzG/F9+mc7isWGbHAt+jwLw=; b=c3tP8s86KIZb9rt6EA1Y8tv6oU26sRB+wZI7JnpR0qjEb592WPwkuldcF4nhFmVLLc D+YswIEtSrO644T3m68yn1f0ZSZ/zWLs3CAhSErFpJqbRj5xYNayduN05UOgZgG4HVIi jgxHtQ0oYO9aLfN6TiDOjgiJpYG8abcclgN2gISGKxoINcOVH5nWHVGekIzlWQuJe4Qg 69YI8+7Ytgk58nboFKlWwFArE/ShoHWHBrrGlrJchsSvz3ytNrENqTU/mpLStmMtNYSG S9beLepc0G0JRdr9n2gHakR1nl0NZUO/U9k166EUi1jgGoBG27TFLijRCPT2JltwY4mr Kdhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:references:from:to:subject:date :in-reply-to: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=edYCdzTQAZ1gknCtjvo4VzG/F9+mc7isWGbHAt+jwLw=; b=TQfkqRHj+UOnMiYBPNcGKEkOnDVyHnbRv/+IGgHeeQEW8hej2Lvsuj/QsKdp74HIfV E6SCAiqspbJxVfIkiCmujSnKNIQMcjhcKR4Kn8droWM6bQ1/ZVtbQGQghwzkM3FefoWO slRp6kCdpqCxrXOeSGRaYJvzLvXnjo238hjgtzQSvMlxFrb0uiTZ+6Dj35ZUzjZH1VGy 58tP1E4+JUoYOzOKNOjCId3BPmeqNFdWtqRy0G/RjqbB5IRhm9WxG4jgJbpQiYuYfBg/ 8+ahQvZE9p8Ys7sNBevj9TYOEmc7RersCe6gFv5nK4W5Sn1nfmUworfPE5sUPE33hzkF 3Utw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532O3tncmYPkZ5G9HW57sA833OHheNZPt1oIm2OrLnrkKcx4hvic Rtjo1wOcoZydLrKC8vv1tgM= X-Google-Smtp-Source: ABdhPJwT8PKpwNFy3FeS3Gyo+nLCa1hvEqfzxXaGoZ4CWKaWAioyYD9W/UCMm66K45saO3xsk+sk5w== X-Received: by 2002:a05:600c:4f4e:: with SMTP id m14mr20019398wmq.158.1642253870094; Sat, 15 Jan 2022 05:37:50 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:adf:fe8e:: with SMTP id l14ls108612wrr.3.gmail; Sat, 15 Jan 2022 05:37:47 -0800 (PST) X-Received: by 2002:a05:6000:1acc:: with SMTP id i12mr11237208wry.256.1642253867529; Sat, 15 Jan 2022 05:37:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642253867; cv=none; d=google.com; s=arc-20160816; b=UKEKYCnxv9n3oqETDcaq0Vfrnc1FNf30LCXll/qhtssYsmtDrH9qyXNzr8ZOmNLq7v l5U1yJ/+SnZkp4QUJvnX2LUGnB//6K8uLDg+FOoyJlfObIb9ImyKUwEiQ9oV52YY9ZNP PKtGRNDfx9LkkyWo3b2ASxk687q1MxMZKPoJ5JJLB2xHHkwtGrwuavNs2CHIJFQFZV4G V66N38aTfuitjysQokHcq2RL1viNgc6cE1O81vKBFM+gz2evJrDlVyakrpQ4PrJiQBWe byTyGs6F4jc3XpEiHsUQO/kMf4pM02Qmkrh9Y15cfe4NdAK879I33TKAGtkJFAtEMP6j WdSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:in-reply-to:date:subject:to:from:references; bh=+aUrjSg2XPXuZ5n9sidWq2lCVuEUprSGooPH5mriAhQ=; b=dHlxjGuvGzYcd1j2GrvW+1P8ssY+zYO6jewVXy88mTNkvtixFj8HiP454P9TWYS9aM Y5jKY4EEtMKlz5XtNc2y1RORGfBbJHX8eMQsgVXHqra/DAulx6DEpm84/g1Sli9BO0ym 9djDkCvwWo/N246FMDdIp3EOB74JoVEN/jDuc3whem1F53J+ZTyBHCNDgUgqBuExuHah rXsjx1KgNEtfuiNZce1vvAXWvcTSJj+Ko8Ic8PxryYWf6GL+QHUzmH63BHzvN/F2rsmD r4Wgf0+0gzEu0K4L8pCcIjhzkSyrPoXrlhP6/U8apmZ2FWSZ0kik4qgehYna9Y1bsf0D 7dpQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org. [80.241.56.151]) by gmr-mx.google.com with ESMTPS id m12si351905wrp.3.2022.01.15.05.37.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jan 2022 05:37:47 -0800 (PST) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) client-ip=80.241.56.151; Original-Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:105:465:1:3:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4JbfP65zs6zQjml for ; Sat, 15 Jan 2022 14:37:46 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de In-reply-to: X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@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:29979 Archived-At: writes: > I use this lua filter to move references after a special heading to the > document metadata : > > [...] > > The filter works, but it has the side effect that it also removes all > section ids. The cause is that pandoc moves the IDs from the headings to the section divs; they must be transferred back. See the link below for an example. https://github.com/pandoc/lua-filters/blob/master/section-refs/section-refs.lua#L93-L104 -- Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124