From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32120 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'William Lupton' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Identifying a Header Date: Tue, 31 Jan 2023 16:38:50 +0000 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000014087105f391f833" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36426"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBBJ4I4WPAMGQE6CEC77I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jan 31 17:39:06 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f58.google.com ([209.85.128.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pMtf0-0009K9-70 for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 31 Jan 2023 17:39:06 +0100 Original-Received: by mail-wm1-f58.google.com with SMTP id ay19-20020a05600c1e1300b003dc54daba42sf4288857wmb.7 for ; Tue, 31 Jan 2023 08:39:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1675183145; cv=pass; d=google.com; s=arc-20160816; b=LtzpxQa9Lu+KN12C5sn0ByRw6A2ZtlGPFkc7RUOAtH34JLnuFxv5VXPve7e0rs6RUx bd/jXt4obWH2Y/R07N/D/Yhe7WfYkLfgblwkdLGSNsd/ZW4RjlW4tHKDMsOQ00++cS2V JptMU49rvQrkxzwF1mC8dBSuRWotWdPHtNQ/WbJfGAZsMgDi1WAf0qCdPSoENLFAL8I1 ChmtoOcz5niLxM6csEcbBzjGa/WkjPMfnd5w41cib0TXo7JKzSjLW8fb6NvyoBUONk+r GfzPcm137AEmZJFP2PDAsidll9pjI5KplPKDNwk4w1B/kTCwl0QFtkqBV68D6H0gkClU Iuqg== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:dkim-signature; bh=bLRLyTVo6FTGopYS3RqlFBte1vsroVeK+/zMbqu8yAE=; b=RVAO1NhFiGQcqY4pbsXMIGyEy/jBb77VfiqbPSbnEgLmQ8UxuG7T/mAMfTXKLYAkO1 uJcIQS3n6wh3MXCknh+Uk98CIAHSgmtsjzFwYhhxkS4/XgwQvwUWGhFbF1RP6i68RtgM Y/htv25RBqFTd5xnUvo7q9gVenO+s9iM/2moMvmf/21LxFqt+Ep7JKHBtQEUeW2U9Toa ZS1yzzD/J1ROcj6HMgJKu2z90flCTmGjDnHwu6VNNSyXWdigZDOupbZq0J/3lOkNVpAp 6Eg7v/aK6GzbhiTmuIjG9+I9iAsNg+K/yN7/dpHdrYr0b/tCaKAAnIeHUAMZ0ZSKZ9U7 ZOug== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b="W9UOEAN/"; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::632 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.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:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=bLRLyTVo6FTGopYS3RqlFBte1vsroVeK+/zMbqu8yAE=; b=gap14iblOLdLyVWBJYbp98TtXtn+SBd764A4AlIfQv+7pvPi0u9m6ErwfvjzhwJkgV I/bwfR/pB1+E+DRK4m1ddQIB32shCoMt46QIvaSlVkW+B472sX7lmt/A5bhh17FtlTaZ wvcqs7+fdu4mTr33ZwToTP3dz6xcA5ooaobeSqQ0WYw7gyg5xwOUU8Cxe+SxYyjz9qJd 2Xr31WV9r0ZIP8rdh+bnhSK0xnGRXL4iXSg2GgUPpAfVqAAEhFZdf3jScSAzKSvGBNHA ptbgVWN3SA2JmeD4v3aZZ3HWFktXoaYXWn77QZygvsM2IArr1b9wjW4iuGDR2B/4ZFfc VtlA== 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:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bLRLyTVo6FTGopYS3RqlFBte1vsroVeK+/zMbqu8yAE=; b=rDb5Q6VLEo4jZO1LRuND1VC3L+KcEirLtaNyqPoOg8XUwFYKVbJlG1CiTKe6qugCdI O0fKGDRS0wnPkWoJW+RpA7EstzkxsOfngyFj/8QChjmaL4vfszMFI7r8N6n8Loob8mJr Z1K4376sQLimp1NAh3++adukw1+5hrBIkvFffQKKm6C5jAYqHbkBa9vo1uzuE8gtlPFC Eb8k8MKz+BdlFThgJi8aiFg1qjegbmb57HSJK/n6xz/sLQFmWaU+JkbbZav4+6NGwrPv EQb8FU62IQSKyF+tdExb+QT4GDZmDn2F01i8ckkz0vTvDHjRoqYJ5H8CZ0K+Uyv X-Gm-Message-State: AO0yUKXe4k5yFwrtipOjWEKtBvoFzR9aVfPTW8eBU39yXVRSTJIHojTK 0SxJwxc6XJP5X+TL56ntivE= X-Google-Smtp-Source: AK7set8duYwzanz4ACLdnu41IS83tCdZrNjWqEdNOeLLXSB4+6nmK22rPesq1Js0AU0pSYYXKdRjXw== X-Received: by 2002:a5d:5088:0:b0:2bf:e929:1af4 with SMTP id a8-20020a5d5088000000b002bfe9291af4mr448474wrt.18.1675183145776; Tue, 31 Jan 2023 08:39:05 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:3b03:b0:3d9:bb72:6814 with SMTP id m3-20020a05600c3b0300b003d9bb726814ls4890529wms.3.-pod-control-gmail; Tue, 31 Jan 2023 08:39:02 -0800 (PST) X-Received: by 2002:a05:600c:4f12:b0:3dc:5300:90a9 with SMTP id l18-20020a05600c4f1200b003dc530090a9mr10609240wmq.28.1675183141956; Tue, 31 Jan 2023 08:39:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675183141; cv=none; d=google.com; s=arc-20160816; b=tstiJtDOlCEnEWMBkUJdGK20Z+V+FmNQ13T7OHh7Qx6kdLg0PEOrNkWoYGYUh8kjee e1GjSixE0LHdmFT9iek0DVgRn3OacPMQDuBn3Z3TCMT2d/uPGDDD2bE6z1py+9YKdDY6 kRsBZCUy8QHVWwEbj2dPF+0P+SjiLlGZkDvzLErrGJDy0N04gP6muxFy7gmNJmAtMxhc Ll7E2qbcwxDhQdh5Ex5Q8cJfNVkf6VaVymR4vYXf297K3b7lzuF9KtIPRaYRrXCarrjB dAMLExHXK5jhEcndzXRMdIaUtz/4OGwprgtsRIBZjCyaI1anKq+ngAHAhRvaIguiLd4h Ymmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=V5qb6TSbw7r80L+Hzzyt90of3Cy3B1cippzr0bNeZnE=; b=Gs5xuUv5wB8tohOY3jx9CAgGZ23/3D4iW86uUWlyq0lrLH3VV7vTW9CRjWvh5+EegN zzXmXaAiTmEjrMaXo7GsE0/6vPDTTM4Uj1RdhVoK7V1g7yTMqPBsaiYXTWNcNPrJmkFl XOasKW6A3XpUsc6UD2FPaYy11UeWnJbzksI1tbZ5LYICn+LmhbteYTBPNf2wsqdH5L78 /e2PHi2u+RT1wT5Vz0naI0KyVC0jvEdqAOkTW8SWtVnLCnaMTCGCgRcvqjbylqNbyKJX p2XhpQtRa2Qceit5xlFXfnXq5fo07gk0Q+BhMn7r1T8uyaMA8/xDHuFWGfaUvTyVL8q1 /cXg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b="W9UOEAN/"; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::632 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org Original-Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com. [2a00:1450:4864:20::632]) by gmr-mx.google.com with ESMTPS id c3-20020a7bc843000000b003d9dfe01039si139261wml.4.2023.01.31.08.39.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 Jan 2023 08:39:01 -0800 (PST) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::632 as permitted sender) client-ip=2a00:1450:4864:20::632; Original-Received: by mail-ej1-x632.google.com with SMTP id bk15so43294125ejb.9 for ; Tue, 31 Jan 2023 08:39:01 -0800 (PST) X-Received: by 2002:a17:906:c0c1:b0:86f:ef27:3f81 with SMTP id bn1-20020a170906c0c100b0086fef273f81mr10912279ejb.56.1675183141417; Tue, 31 Jan 2023 08:39:01 -0800 (PST) In-Reply-To: X-Original-Sender: wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b="W9UOEAN/"; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::632 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org X-Original-From: William Lupton 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:32120 Archived-At: --00000000000014087105f391f833 Content-Type: text/plain; charset="UTF-8" Use .tag or .t (ref. https://pandoc.org/lua-filters.html#type-header). On Tue, 31 Jan 2023 at 16:07, jcr wrote: > How do I test whether a block is a Header? pandoc.utils.type(el) just > returns "Block" for Header, Div, Para, etc. > > I'm still using pandoc 2.19.2, if it matters. > > -- > 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/f319694d-073d-4c4d-b447-681f3d4c21bcn%40googlegroups.com > > . > -- 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/CAEe_xxjG-oAvWUpPnL3t0TiBtiDWmaKEoH%2BR%2BPVX3iPtJBG%2BJw%40mail.gmail.com. --00000000000014087105f391f833 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, 31 Jan 2023 at 16:07, jcr <ffi.appdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
How do I test whether a block is a Header= ? pandoc.utils.type(el) just returns "Block" for Header, Div, Par= a, etc.

I'm still using pandoc 2.19.2, if it m= atters.

--
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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https= ://groups.google.com/d/msgid/pandoc-discuss/f319694d-073d-4c4d-b447-681f3d4= c21bcn%40googlegroups.com.

--
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://g= roups.google.com/d/msgid/pandoc-discuss/CAEe_xxjG-oAvWUpPnL3t0TiBtiDWmaKEoH= %2BR%2BPVX3iPtJBG%2BJw%40mail.gmail.com.
--00000000000014087105f391f833--