public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Identifying a Header
@ 2023-01-31 16:07 jcr
       [not found] ` <f319694d-073d-4c4d-b447-681f3d4c21bcn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: jcr @ 2023-01-31 16:07 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 573 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 911 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Identifying a Header
       [not found] ` <f319694d-073d-4c4d-b447-681f3d4c21bcn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2023-01-31 16:38   ` 'William Lupton' via pandoc-discuss
       [not found]     ` <CAEe_xxjG-oAvWUpPnL3t0TiBtiDWmaKEoH+R+PVX3iPtJBG+Jw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: 'William Lupton' via pandoc-discuss @ 2023-01-31 16:38 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 1339 bytes --]

Use .tag or .t (ref. https://pandoc.org/lua-filters.html#type-header).

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, 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
> <https://groups.google.com/d/msgid/pandoc-discuss/f319694d-073d-4c4d-b447-681f3d4c21bcn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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.

[-- Attachment #2: Type: text/html, Size: 2190 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Identifying a Header
       [not found]     ` <CAEe_xxjG-oAvWUpPnL3t0TiBtiDWmaKEoH+R+PVX3iPtJBG+Jw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2023-01-31 16:43       ` jcr
  0 siblings, 0 replies; 3+ messages in thread
From: jcr @ 2023-01-31 16:43 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1570 bytes --]

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 <ffi.a...-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, 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 
>> <https://groups.google.com/d/msgid/pandoc-discuss/f319694d-073d-4c4d-b447-681f3d4c21bcn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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.

[-- Attachment #1.2: Type: text/html, Size: 3270 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-31 16:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-31 16:07 Identifying a Header jcr
     [not found] ` <f319694d-073d-4c4d-b447-681f3d4c21bcn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-01-31 16:38   ` 'William Lupton' via pandoc-discuss
     [not found]     ` <CAEe_xxjG-oAvWUpPnL3t0TiBtiDWmaKEoH+R+PVX3iPtJBG+Jw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-01-31 16:43       ` jcr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).