See here:

https://github.com/pandoc/lua-filters/tree/master/pagebreak

What you would need to do is to copy the appropriate code for your output format(s) there and write your own filter which inserts it before every level 2 heading. Please let me know if you need help. I can write that filter in ten minutes, but it's easier if I know which formats you are targeting.

/bpj


Den fre 13 sep. 2019 21:04Don Raikes <DON.RAIKES@oracle.com> skrev:

Hello,

 

I am just getting started on my first pandoc project. I am breaking my project into multiple markdown files each of which starts with a level-2 header “##”.

 

How do I tell pandoc to force page breaks at each level-2 header?

 

--
Thanks, Donald

“As a leader, to be successful, is to help the people around you to be successful.” – Kent Boucher

 

Accessibility, like security, is better when built-in from the beginning rather than bolted on at the end.


Oracle
Donald Raikes | Accessibility Specialist
Mobile: +15202717608 | VOIP: +15205744033
Oracle Accessibility Program Office
| Tucson, Arizona

Green Oracle

Oracle is committed to developing practices and products that help protect the environment

 

--
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-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4fadd2ef-820b-4dc9-b7b7-97aab7232543%40default.

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAFC_yuRdvfD7-Ds_KL4JyJBb8OKY5OpK9Zc1aVUS-6p5pYVxSw%40mail.gmail.com.