Or if you always start a new *chapter* with a level 2 header ##, you could define in your reference-doc that level 2 has a pagebreak before.

On Tuesday, September 17, 2019 at 3:47:29 PM UTC+2, Ghislain Vaillant wrote:


Le vendredi 13 septembre 2019 21:14:32 UTC+2, Daniel Staal a écrit :
On 9/13/19 3:04 PM, Don Raikes wrote:
> 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?
>

What's your output format?  Markdown has no idea of 'pages', so a page
break in markdown doesn't really mean anything.

For instance, assuming your target format is docx, you can add:

```{=openxml}
<w:p><w:r><w:br w:type="page"/></w:r></w:p>
```

wherever a page break is needed in the Markdown document.

--
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/a9898e2d-ae59-4195-afeb-ff46b756e1a4%40googlegroups.com.