The "problem" is that the title from the metadata is inserted as a level 1 heading. I believe this is done by the template.

https://github.com/jgm/pandoc/blob/c1105e6b06d7436f43236191e32156a863de0e13/data/templates/default.epub3#L24

You can make a copy of the default template, remove that part and use that as your custom template.

Den tors 28 apr. 2022 04:50Antonio Piccolboni <piccolbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
Hi,
if I start a markdown file with a level 2 heading (## Introduction), then, only in the epub output, there is a level 1 heading with the same title as the book. html and pdf start with the level 2 heading, no problem. How can I prevent the creation of this spurious heading? Thanks


Antonio

cmd: pandoc -s  minimal.md -o  minimal.pdf (or epub, or html)

minimal example:

---
title: "Minimal"
---


## Introduction


bla bla bla

# Chapter Uno

Bla bla bla


--
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/55088d13-2a2f-4cd7-b865-2d5e32c44911n%40googlegroups.com.

--
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/CADAJKhAj0-S3QgMSLOddvp2%3DQvKXgqbSvkb%3DU1T_k-NCS4CFzg%40mail.gmail.com.