From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32039 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ChrisD Newsgroups: gmane.text.pandoc Subject: Re: Lua filter to process chunkedhtml output Date: Thu, 19 Jan 2023 14:32:40 -0700 Message-ID: References: <1D22B433-211B-4033-8A63-F637F52B2008@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24614"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDHMHIETYAGRB67NU2PAMGQETFQOUOA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jan 19 22:32:48 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f63.google.com ([209.85.128.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pIcWd-00069P-HG for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 19 Jan 2023 22:32:47 +0100 Original-Received: by mail-wm1-f63.google.com with SMTP id j8-20020a05600c190800b003db2dc83dafsf431416wmq.7 for ; Thu, 19 Jan 2023 13:32:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1674163966; cv=pass; d=google.com; s=arc-20160816; b=a/1kgLymZBjomL7DoZH+u2rlmDYr7TzCJFnfOBUgReyVwlSd5EBLTAdA2nadJQRPXV STZaHMz0lXCO03kcRid718ZZuqYSRAF/cM796PY9uItvVYtV0+NJ/klxscv8F/i4yfEQ bOewKO7XHryjruaZPBLbXOjA5Mhu5JuvL/d/UQSQp7O/Un3Qxxcu8YApRbe06Wn9Itux 3lBVWZx84x14yaRsNcfdZNAtGCnHhtiVU7EjMsqUNNPEwOPkqMBXTfvICdcYt22HaQgN /txEZebG/+pDOLvfhA2GuKlX+4hRyCPH2zIIP+4F4ZqVPdeGKX0OI66qpKJhlCF6CbDt 469w== 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:content-transfer-encoding :in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:sender:dkim-signature; bh=gQenoz39rsVts8IL5qaaSE3sf288r6r/BwO8itnuDgw=; b=oPIaZsKtCTEFy9hihAOxV74yNjlZIlBqyt4CNuiRSncp5IF/eqF06vMCC/nndM33TE mckUQhetcvD+WUsVq12nsNiQBRmhBXKpeKilkAmFggcejcA5A8Jjrn/b6K1RRI8FvMEY wH2lpQNPg1PgSGGpe5ycAvtXAaZySBGpt56AojyIXG4kJHXpdwMPqNobYR+uMCW7KNQZ 4+WGCTR6jEP2XUfvrhzb3hcC4IR47Oew7wWFHfEYH2CS3XZ0llpVSWC03NMe/8unoCqj elVdyt4tpgZeA7BWplKsm+4OnXDTOvU4uvxoSSoJtZ0BNssyMCNIspMj7wcsmVI2NREd B2ew== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of cd34-gg-4SSc53hpTiu9TMao6EloiEEOCMrvLtNR@public.gmane.org designates 209.68.5.143 as permitted sender) smtp.mailfrom=cd34-gg-4SSc53hpTiu9TMao6EloiEEOCMrvLtNR@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender :content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=gQenoz39rsVts8IL5qaaSE3sf288r6r/BwO8itnuDgw=; b=KbnMXRXatKkI7C2aIXRol75ZAk+KcRtGrZfGyg3YCQu+PYMQj89x33R2Rt9sNsKNNI h1GXv7IvG+FFQQYwLLGfSPlCXfDXLIBb4sbnnMmzxlH5N+nd5jAnxXsS3iwqO3B3K6s2 Pe2NhUqnpfSKyS3OaPla7N5HiKf4AHeXBStrY7jE10Dq621RDEK+IknxlSLsQqb5GD8T UDvVV+qBboECGoinFAA0NygmE2OP4muJRRMMD91WgzQN1iWjqhizzTUXKXivYkqy9nw0 qljdNXixcaTySm+4UQEXiEolfUXIIVzdX5hQw X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender :content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=gQenoz39rsVts8IL5qaaSE3sf288r6r/BwO8itnuDgw=; b=zXd6k208U8k1stRYjUCmw2p0nOo2D2JJGFgLZ9mcgCmPtTBixoqqFeBAPYmP/v5KQX oT3WTieS/zYXw4xTpkdteY9mCrIA8jzltsCg7cQpAjYxNwrosJcqmg51Q/oMb68o2Nmr 9slcLyhrXD4QciXcI1ivf2Nm7BRRww5f/+Dx0hvFGyqJbm9DKSpqG/sHqDy4sQnUTqva fx5SxI5K4RyVuFf/pe2OkTscEvgmFT6NguKdfOZDlyssYmHgGpmyBpn4OTyW Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2kptqARwVdO9MkjLwO+OoWRrgIMn/+3M6j3B3NPTcI6vfJPf4QMs omBnSIGo1fhedNmYHnu2RLk= X-Google-Smtp-Source: AMrXdXvzaiuxWSCPGlYm6QO5MtOKD4TEVhFgmHfHx3D5IGH+qVZ8K87JMH5NNQ9NoMOmdSPNkQzPFQ== X-Received: by 2002:adf:ec8a:0:b0:2be:34f6:9b05 with SMTP id z10-20020adfec8a000000b002be34f69b05mr367994wrn.292.1674163966823; Thu, 19 Jan 2023 13:32:46 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:1c12:b0:3c6:c1ff:1fd with SMTP id j18-20020a05600c1c1200b003c6c1ff01fdls3246272wms.2.-pod-canary-gmail; Thu, 19 Jan 2023 13:32:43 -0800 (PST) X-Received: by 2002:a05:600c:5390:b0:3d9:a145:4d1a with SMTP id hg16-20020a05600c539000b003d9a1454d1amr7847830wmb.34.1674163962992; Thu, 19 Jan 2023 13:32:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674163962; cv=none; d=google.com; s=arc-20160816; b=z3zBiMgDPjNb/w1c27+PftVV0b/m9sv9NbTAz+sZ/xRFSxXX2fN9CRz7iLRsrl9cbh q1r8ZeWjt1kXbKjyVHis0EoRWbX7zqG2eNOQna4sugZONbv8Egki6UTW5N6WWPQvuUow 4juO7VY1xo8YvRJm7Th1q5ZTmes2CVqI3ol7FJr+amOG2ygOHSQzmFNAbbj2KIdWbzwx IjmUf28fXVz3LAVN6yTacdqI9IA30a1Q67i5zc+S+AgWRZN7NH9aH5xs9rrHnsU0vF/k ih2lM5NWd4m2T5lXx9iChMcmJbF3bnEvN2/ZoD6qgCozw+vTa5oQZjUjb3VuYWwlnkU8 WdhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id; bh=qmRpFnCjqkSlLLtqd7IyXywbKaeZo/8KA/CPJnXs5tE=; b=kRDu1bHdcGBBnr+PTLWksfTBPD1hm1VTCWo5aLa6qGlJpfku/wDnCiwe084pjlirdF 73WyY18E8QKJr52HEHGzqsREo+fXzNjrwexp82InEecD0Mc0teniNzd8GxRZHufQPrsO AhMZ8pzp5Ujk/caeAWDPKmxsJEGhpHGhxayIkpFulk4+LBkvUIy+Ox7uGerXx8jruEn1 IWGm9YCGMKs0AShkJEca5NZmvrMRNovrGCjKd+qWGhtpyAJxYYF7E+4rLZ62YzCl7+2p 529jsMax5L0h42buMqnoDNYpSJWwGGU2qkL2s6cB2xLhA32SiAfIRN5Pg4BVNNbxeaZC YX5A== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cd34-gg-4SSc53hpTiu9TMao6EloiEEOCMrvLtNR@public.gmane.org designates 209.68.5.143 as permitted sender) smtp.mailfrom=cd34-gg-4SSc53hpTiu9TMao6EloiEEOCMrvLtNR@public.gmane.org Original-Received: from hamza.pair.com (hamza.pair.com. [209.68.5.143]) by gmr-mx.google.com with ESMTPS id ay1-20020a05600c1e0100b003d9c73c820asi366134wmb.3.2023.01.19.13.32.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 13:32:42 -0800 (PST) Received-SPF: pass (google.com: domain of cd34-gg-4SSc53hpTiu9TMao6EloiEEOCMrvLtNR@public.gmane.org designates 209.68.5.143 as permitted sender) client-ip=209.68.5.143; Original-Received: from hamza.pair.com (localhost [127.0.0.1]) by hamza.pair.com (Postfix) with ESMTP id 4AF3A33EFB for ; Thu, 19 Jan 2023 16:32:41 -0500 (EST) Original-Received: from [10.104.138.18] (static-198-54-133-104.cust.tzulo.com [198.54.133.104]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by hamza.pair.com (Postfix) with ESMTPSA id 159A833EE5 for ; Thu, 19 Jan 2023 16:32:41 -0500 (EST) Content-Language: en-US In-Reply-To: <1D22B433-211B-4033-8A63-F637F52B2008-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Scanned-By: mailmunge 3.10 on 209.68.5.143 X-Original-Sender: cd34-gg-4SSc53hpTiu9TMao6EloiEEOCMrvLtNR@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cd34-gg-4SSc53hpTiu9TMao6EloiEEOCMrvLtNR@public.gmane.org designates 209.68.5.143 as permitted sender) smtp.mailfrom=cd34-gg-4SSc53hpTiu9TMao6EloiEEOCMrvLtNR@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:32039 Archived-At: On 1/19/2023 10:12 AM, John MacFarlane wrote: > sitemap.json is really for processing with external tools. If you're usin= g a Lua filter, then you can use the new module > https://pandoc.org/lua-filters.html#module-pandoc.structure I started playing with this, but quickly got confused. Inside my lua filter, pandoc.structure is nil.=C2=A0 Is this available in a= filter, or only in a custom writer? Should I be trying to write a custom w= riter rather than a filter? Is there an example of getting or using the table of contents? Also, I tried to print the value of PANDOC_WRITER_OPTIONS, but wlupton's lo= gging.lua errors on it (bad argument #1 to 'for iterator' (table expected, = got light userdata)). I the tried the debugging printer I have used in the = past, kikito's inspect.lua, and it reports its value as " ". Ho= w do I access writer_options from a filter (for example, the toc-depth)? Fo= r what it's worth, I can print the value of PANDOC_READER_OPTIONS. Thanks, --=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 e= mail 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/f761231d-87ea-6bfb-38c3-99eb15184263%40intielectronics.com.