From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29778 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: Detectiing footnotes in Lua scripts Date: Mon, 13 Dec 2021 21:20:26 +0100 Message-ID: <87ee6gnto5.fsf@zeitkraut.de> References: <87fsqwo28w.fsf@zeitkraut.de> 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="19540"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBEOW32GQMGQEGMZR5UY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Dec 13 21:20:36 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f55.google.com ([209.85.208.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mwroJ-0004vh-Ry for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 13 Dec 2021 21:20:35 +0100 Original-Received: by mail-ed1-f55.google.com with SMTP id bx28-20020a0564020b5c00b003e7c42443dbsf14890625edb.15 for ; Mon, 13 Dec 2021 12:20:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1639426835; cv=pass; d=google.com; s=arc-20160816; b=PCRhUh82LiRD7kMTXceLA2cAzwxDmpcDIdmZDzhzh7MW4DbY9b+j5dMEtPPUyYBSW+ ccEvxa0kJ9b8SaifiWPYgJe2UjYyWP78/K8AKN36KshgGp49FzYjuQSoLOj6gl1VA641 wnKPybVuvrVZjvpKAJaKdR9A2E6tKD4jm2WAGx7yBRl5bDIPL4iiVQt84YDpUchTDWbL Xg8Us0t9yGIF4kPUMBoddp36ttArBtOV4fKXp4E9RH+3Ywpo/qXjfQzcB+KeOizqylIs H/4I3zK1QQ6ijOoV/TEffbGvO82ESy2/tk8kHZx5gK4VKOEwieqX1geZ0vgpEYlixVah PTZw== 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:in-reply-to:subject:to:from:references:sender:dkim-signature; bh=e73njJmu0Ke7WR1z61lEcRWJyP0C41FCdzYczSwfnd8=; b=r8fR4wKVgaDW2Nd9S4/S3K/KwXLCAHcaqxZw+7CmRkq/4cNvMn+sIaCn3oTJB5GVf+ h+VXKzNOugUQpnq3+QCzbg9iTnLeydcvGH5LMCOrNy6hkMHyEqkI6HQOIlyTsvDgUed6 g/X8SH+73S1j1aTxSMilwekFUDbb0QcE75tCKO9ClzobudYS2sX1Jifwvz2v+l0e83e3 o/FZ1FWDsUa1YtNfXixTzNfAllkfvnB+SP/l9S7gVTVwGonGLVh6tWrvnjTUm3lqgroF L21zezXSQJUIYhohvRF83fzVX9kqlSkkAlRq0Iy4Yeap4MwkE9c6YoLD6cOMPpCcH4hA Wz/g== 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.171 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:in-reply-to: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=e73njJmu0Ke7WR1z61lEcRWJyP0C41FCdzYczSwfnd8=; b=naZ3reqCyxEPc52oqvaQE12uI35nhKXsPG0DoDf8RlCTpmiUklgCH3TvIZKMDfWUv1 r3r4ME0I44EMMtihZW/nhtFDIAWXBocWcY66AtCZonYKZ/mfk+pI7kBB2OFrGmWU1NXY 6/QSZ+GIhdmpLZSnIMAqATEq/FbM8/3H3B5mmKjEY6K6oLTh9Ghrih48WbfrLTfgdUcm LQULjoyttLXAEAqlDjchIz83ZTdY1YJMSEqtrht5ULDEc18y6Elg+UHgMdtpLFklLAmI HM4cUMaQKtZKERecVVNlApcAtg2qAjY6KQ1zrfYma/wMs+Kevy3BTag/hzrqW0oj2Hd8 /o8w== 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:in-reply-to :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=e73njJmu0Ke7WR1z61lEcRWJyP0C41FCdzYczSwfnd8=; b=NHtQE8ala632n85L+qYFvHWwoHRlXb6j4nODbVyFzG5p9n4ObU2+IRk+L9gUMMc4L7 r8cDst0bnjAciWooGkDVy9bmyHLkeLbpRO7tCOvZZKY/B061rbxkjLBfW2vXpfOKqYsV V2iFZi4J4wXiIdxwndQ4on0lRFK+ha3HEYXxBIMRtQrFa5C8kJyd/jBkCN3/qJUpGC5E vUnqnMKqrp1kHm9/YkGZwA2dIm8shyYzMQ5iT0jrAMLTu5GgieJizIRm80d6/KvZm6Np /8Tg0VhtRmSWyhxh9UP4sompDrXjWkAnfgMP1au3Of5z+uAuA6ZIF7EuKxPCfD75uBum PwPQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533eI4vbxxrBn8pl7pQWVUAFnxdDp6Yd7UWL9zu1SxuNEut3Rqdf N8+SbDp0Oude+gErUY80jB4= X-Google-Smtp-Source: ABdhPJw1Q8pGID96+Ky1xzF5Xmyl0Xu39LJyUSezIM08P14GjuPOt32fFE1MeJv/c5pVk8xXw9cTYQ== X-Received: by 2002:a17:906:7955:: with SMTP id l21mr659300ejo.488.1639426835192; Mon, 13 Dec 2021 12:20:35 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:907:6da0:: with SMTP id sb32ls1714993ejc.8.gmail; Mon, 13 Dec 2021 12:20:32 -0800 (PST) X-Received: by 2002:a17:906:d108:: with SMTP id b8mr609545ejz.531.1639426832325; Mon, 13 Dec 2021 12:20:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639426832; cv=none; d=google.com; s=arc-20160816; b=EfEPrJ5FOGZ1PfdlJ1BPSqDtUYjqGRB46aRRa4XoShcPnrxztfFN0Zbza/LhHqycl0 1OvGI7vxZLuMQDTg+8RZ36qWTDBv2O1h7PMg+2lrA7shOg7DYd+xAdxUMAfZ9Nwg9mbo o+k6uJJoUj84tjuCKLjXV143DkifdvQIaFczOa6JyTUShL6r+RfaFG5EvfJbL697LCAT 5sPrdCOqNHCOhP6wyA4TD+PtAXEhIH7RE2s8b1i/E/z8yv3lIaVESZYMavqmlvPqgigf zLPrGuBXPJFS8X6z3Y+IOAfAjYT3Zb1L+r/Hh6G+uJbtJbn9y+s7rsjGdciAY26LKFnP cxxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:in-reply-to:subject:to:from:references; bh=jybta7m9gBDco1k6r+u64SotVj/BtbhEL/7J1UiHW0E=; b=G3BZbHG4LHRwrrIgyrXErVKcgJYRyT1fpZg3J4mV7qDaFpwtHGn/CCE09Ze2VUy+Ds lk365DsifZF7Kp+5UFduuN47aD1PqCpQVQOWjdyhIX88NcvGj4+GuCcBtEJ4bltA3Gd7 +xYFDeWJQcIybL/J+66OsN0bKSKHQ48mq8S4COlj2vKGyOtTLYOnjo0MsWgXist7t3qo 05/XYy6IPBB2mFVOKitkMAnz8/D+cgHrVyyB/PmkOgSfoV1rzJjhOCBo6C1paBgTTOsT 6FhflOVu6MMHnvvWtGsKYuXN3rvp+2bpoFWqcnhz8gB8oADkePjIkPDQom/uvG/KSfZx 8Yyg== 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.171 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org. [80.241.56.171]) by gmr-mx.google.com with ESMTPS id w5si512309ede.3.2021.12.13.12.20.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 12:20:32 -0800 (PST) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.171 as permitted sender) client-ip=80.241.56.171; 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-201.mailbox.org (Postfix) with ESMTPS id 4JCXv35BCWzQk9y for ; Mon, 13 Dec 2021 21:20:31 +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.171 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:29778 Archived-At: ffi.appdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org writes: > Looking at the PR, I spotted a typo on line 233 of doc/lua-filter.md: > "be" should be deleted from "will be try the following filter > functions". Thanks, fixed. > I see that the documentation only illustrates how to not traverse > footnotes. Should it also illustrate how to apply a separate filter? > The walk() method is new to me. Indeed, it *is* new. The `walk` methods are basically more convenient variants of `pandoc.utils.walk_inline` and `pandoc.utils.walk_block`, but are now available on Pandoc, Block, and Inline objects, as well as on lists of blocks (Blocks) and lists of inlines (Inlines). The method is documented in each of these types; here it is for Block values: https://github.com/jgm/pandoc/blob/master/doc/lua-filters.md?plain=1#L916-L947 Examples using `walk` will include and A good example to demo its use in combination with `traverse = 'topdown'` could be helpful.