I'm assembling a book with individual chapters constructed as markdown files with Pandoc. Currently, I'm successfully using a script like this to combine the metadata document with the chapters to create an ePub document:
pandoc -o book.epub metadata.yaml \
chapters_markdown/chapter_01.md \
chapters_markdown/chapter_02.md \
chapters_markdown/chapter_03.md \
chapters_markdown/chapter_04.md
However, between several chapters, I would like to additionally like to group several chapters together into parts, similar to the way you would use the LaTeX commands:
\part{First part}
\chapter{First chapter}
\chapter{Second chapter}
\part{Second part}
\chapter{Third chapter}
\chapter{Fourth chapter}
Is there any way to do this with markdown and Pandoc?