From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32121 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jcr Newsgroups: gmane.text.pandoc Subject: Re: Identifying a Header Date: Tue, 31 Jan 2023 08:43:59 -0800 (PST) Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_384_407157314.1675183439573" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19358"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDQLFNXWVILBBUEK4WPAMGQEQMREGVY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jan 31 17:44:03 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f61.google.com ([209.85.161.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pMtjn-0004rU-DU for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 31 Jan 2023 17:44:03 +0100 Original-Received: by mail-oo1-f61.google.com with SMTP id z24-20020a4a9c98000000b004f209cc2866sf3041960ooj.2 for ; Tue, 31 Jan 2023 08:44:03 -0800 (PST) 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-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=zphuvAWcLNGbMRBck+lwYxcyLdi+5KaUqskQZxF1cto=; b=mj1eXxeCoRxUnW8BupJXSKmp8Eazve4o4Faob5PWYRyOjE3M+rYnd19HGp85tEMbqz kuf4IgCMbWDacwL81KgMkuyGHTr43ErBj5xBrgJX36g+DTRD6UT3Uo02lb05SiypZwjQ LqiXhBAznHW5Ikd8VH/mxo9bFVi9qJQp41aTXBeUh0TM9vF5hJ0uQ2YsXU9xoZD1xdC9 Av7PSL3PKSOVOq672QdBVRI1iswXW/+VEbLWJVLDeY1Hq70CQtk0siYnE1VKpqPD4g6o hbBMewCsS3xWLu+xFzkjr5tP+YbfABY2+PYuG/egO4eA5H/r7DerC330Muwi2RQJvEI0 DPag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=zphuvAWcLNGbMRBck+lwYxcyLdi+5KaUqskQZxF1cto=; b=do+KR/Bmq6Z414jx1H9L66Dg1FwL4NWywyG7rz+u8l0KMhYrjM6AM8IIvX1x9LMhSo GgGVO2hsBWoPBX7l5iYR1KNOw0aQJh2NlkCiI5KhsAmP2YB3KoxzINGq3v/cj1L88USG E96xrfhv9ahzTbNEsd+Kok0SQFX1wUrcXNaZ2mMDcEd5sGqBixzSz33xK3S8FhFHNEDo nARQ30JfPHqzoca+F2oFMm0VYxFP99RZAB9kWjKrYEgwdxpRwcaK66E2T01xwFQ69RUW sSXhJrPn2+2cQ0rYgxTlsxVvh7yFiau0cD1kpGHw9iefskVnwwjvSryrSy+yl8WKYJAP qgTA== 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-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=zphuvAWcLNGbMRBck+lwYxcyLdi+5KaUqskQZxF1cto=; b=5iTPH/ad7LDwpOvmDAG+Z7gpmNSAw2sI9hOhyTSLtf3JIdP3Pu/LUsOS44dwT4dV9H B3CgNFQ0a55jX//NH2opGP4S4pJlij5skZpzyCwWaIW8FuYXj4UwdDd+RY38wggZdkLq ipvrN1tFvrJ7ZkfoPhPd/+s30BNvIXrR20tX7h/ZHZlBBc30pXMCgTeRqYsj6GSVOZ5p Qy9TIyh+0QRJQS1LMGTsKom+Gq2PcvL1DeoS8RF+vfjGduqlRCB/OtlPN1qPvvfVDBNA 1ryLocThAhunTVs4TnR2YJzOvngk4dudKYeYHQyxQiIpcpwZ+28QaNUaKU2KM4lI6yLk tH/g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKVc9CNyw8IMJ8lGSLF/pW2snopBw+hPqOTS1UUqvQkBMOTlPF6h azPlfrNj9jqrjTKba8cGpiU= X-Google-Smtp-Source: AK7set+f+vItLqucZi9fI2s8WxsxMNWxQhtTAok0X6oVhwhSuoLieXQe2JL8WYsWfbn8gm9vl8sHyg== X-Received: by 2002:a4a:6f57:0:b0:511:f181:118d with SMTP id i23-20020a4a6f57000000b00511f181118dmr874467oof.16.1675183442311; Tue, 31 Jan 2023 08:44:02 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:3c12:b0:14d:3678:867f with SMTP id gk18-20020a0568703c1200b0014d3678867fls6830330oab.10.-pod-prod-gmail; Tue, 31 Jan 2023 08:44:00 -0800 (PST) X-Received: by 2002:a05:6870:d0c1:b0:163:7da9:fbbf with SMTP id k1-20020a056870d0c100b001637da9fbbfmr1222050oaa.104.1675183440085; Tue, 31 Jan 2023 08:44:00 -0800 (PST) In-Reply-To: X-Original-Sender: ffi.appdev-Re5JQEeQqe8AvxtiuMwx3w@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:32121 Archived-At: ------=_Part_384_407157314.1675183439573 Content-Type: multipart/alternative; boundary="----=_Part_385_1951275780.1675183439573" ------=_Part_385_1951275780.1675183439573 Content-Type: text/plain; charset="UTF-8" Thank you. I was about to resort to duck typing, since Header is the only element that has level (besides Chunk). On Tuesday, January 31, 2023 at 11:39:05 AM UTC-5 wlu...-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org wrote: > 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-discus...-/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/e3c3ed37-ba0e-4525-85ef-fa43c7f2e2den%40googlegroups.com. ------=_Part_385_1951275780.1675183439573 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you. I was about to resort to duck typing, since Header is the only e= lement that has level (besides Chunk).

On Tuesday, January 31, 2023 at 11= :39:05 AM UTC-5 wlu...-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org wrote:

On Tue, 31 Jan 2023 at 16:07, jcr <ffi.a...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
How do I test whether a block is a Header? pandoc.utils.type(el) just re= turns "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 &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discus...@googleg= roups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/f319694d-0= 73d-4c4d-b447-681f3d4c21bcn%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://groups.google.com/d= /msgid/pandoc-discuss/e3c3ed37-ba0e-4525-85ef-fa43c7f2e2den%40googlegroups.= com.
------=_Part_385_1951275780.1675183439573-- ------=_Part_384_407157314.1675183439573--