Searching for `$title$` elsewhere in the template and adjusting as needed should do the trick.

Den tis 3 maj 2022 01:09Antonio Piccolboni <piccolbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
Thanks, I gave it a try, removing the nested for and if starting at the line you highlighted, but it doesn't elicit the desired result. Opening up the epub, the aforementioned template lines affect something in the title_page.xhtml file, but the additional h1 level title remains in the ch001.xhtml file. There is no other explicit h1 heading in the template.

On Saturday, April 30, 2022 at 12:30:10 AM UTC-7 BP wrote:
The "problem" is that the title from the metadata is inserted as a level 1 heading. I believe this is done by the template.


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 <picc...-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-discus...@googlegroups.com.
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-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4c62d794-40d8-44c2-b444-42c701654c50n%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/CADAJKhDUjs13moUqepKrysjLk66gOTH9yrj3-c-necyy-1z5Ug%40mail.gmail.com.