public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Filter: character from header
@ 2016-11-21  5:01 Nico E.
       [not found] ` <9ed6cdce-7f5b-447a-a198-200f8b7b514e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Nico E. @ 2016-11-21  5:01 UTC (permalink / raw)
  To: pandoc-discuss

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

Hi.
I want to extract the first character of a second level header in a Python filter. 
As I understand the [inline] Attribute is in value[2]. 
Why cant I just check on value[2][0] then?

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

* Re: Filter: character from header
       [not found] ` <9ed6cdce-7f5b-447a-a198-200f8b7b514e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2016-11-21 10:00   ` John MacFarlane
  0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2016-11-21 10:00 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Note that the JSON format has changed between pandoc 1.17
and 1.18.  That might be what you're running up against.

Try generating json directly with pandoc to see what you're
working with.

pandoc -t json

+++ Nico E. [Nov 20 16 21:01 ]:
>Hi.
>I want to extract the first character of a second level header in a Python filter.
>As I understand the [inline] Attribute is in value[2].
>Why cant I just check on value[2][0] then?
>
>-- 
>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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9ed6cdce-7f5b-447a-a198-200f8b7b514e%40googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.


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

end of thread, other threads:[~2016-11-21 10:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-21  5:01 Filter: character from header Nico E.
     [not found] ` <9ed6cdce-7f5b-447a-a198-200f8b7b514e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-11-21 10:00   ` John MacFarlane

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