Would you consider to pass the info of the top-level-division in the JSON? When reading: --top-level-division=[default|section|chapter|part] : Treat top-level headers as the given division type in LaTeX, ConTeXt, DocBook, and TEI output. The hierarchy order is part, chapter, then section; all headers are shifted such that the top-level header becomes the specified type. The default behavior is to determine the best division type via heuristics: unless other conditions apply, section is chosen. When the LaTeX document class is set to report, book, or memoir (unless the article option is specified), chapter is implied as the setting for this option. If beamer is the output format, specifying either chapter or part will cause top-level headers to become \part{..}, while second-level headers remain as their default type. I found that requiring the user to specify the top-level-division in YAML for filters (in addition to the cli option they need) is not enough, because of the default option. Users might want to leave it as default, and it means filters author need to replicate the logic to determine which one becomes the default. By the way, I don’t understand the last few words of this quote: second-level headers remain as their default type, what are their default type? On Thursday, December 15, 2016 at 5:10:30 AM UTC-8, John MacFarlane wrote: There's no way to get this information in a filter; it's > part of the WriterOptions. > > +++ Kolen Cheung [Dec 15 16 02:54 ]: > >Is it possible to determine the > `--top-level-division=[default|section|chapter|part]` option used in a > filter? I want to write a filter that needs to know how the header-level-1 > is related to the LaTeX's top level division. > > > >I tried using such settings with `-t native -s` and it seems the info > isn't there. > > > >-- > >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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > >To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > . > >To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/39d1e149-7ccb-45e4-a169-abfc5a4bc935%40googlegroups.com. > > >For more options, visit https://groups.google.com/d/optout. > > ​ -- 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/b94d7725-f24e-4ff0-8cbb-eceb9783ffce%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.