Perhaps I'm missing something, but is there a way to either
(a) ensure that pandoc places pagebreaks before level 1 and level 2 headers in markdown (#
,##
), or
(b) hide \newpage
from other markdown tools?
Is it possible to edit the template that pandoc uses for the conversion in order to do (a)?
Any ideas gratefully received.
:-)
\setuphead[section,subsection][page=yes]
. Thetitlesec
package in LaTeX should provide similar functionality.pandoc -s -w context doc.md -o doc.tex
then edit the.tex
file to include your\setuphead
line, andcontext doc.tex
?context
will drop you into an editor). Ideally, you should modify the default ConTeXt template to create a custom template (see pandoc documentation) that has the above line included, so that you do not have to edit the file to add that line every time.