public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: BPJ <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Additional level 1 heading, only in epub
Date: Sat, 30 Apr 2022 09:29:55 +0200	[thread overview]
Message-ID: <CADAJKhAj0-S3QgMSLOddvp2=QvKXgqbSvkb=U1T_k-NCS4CFzg@mail.gmail.com> (raw)
In-Reply-To: <55088d13-2a2f-4cd7-b865-2d5e32c44911n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1950 bytes --]

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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/55088d13-2a2f-4cd7-b865-2d5e32c44911n%40googlegroups.com
> <https://groups.google.com/d/msgid/pandoc-discuss/55088d13-2a2f-4cd7-b865-2d5e32c44911n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.

[-- Attachment #2: Type: text/html, Size: 3100 bytes --]

  parent reply	other threads:[~2022-04-30  7:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-28  2:49 Antonio Piccolboni
     [not found] ` <55088d13-2a2f-4cd7-b865-2d5e32c44911n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-04-30  7:29   ` BPJ [this message]
     [not found]     ` <CADAJKhAj0-S3QgMSLOddvp2=QvKXgqbSvkb=U1T_k-NCS4CFzg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-05-02 23:08       ` Antonio Piccolboni
     [not found]         ` <4c62d794-40d8-44c2-b444-42c701654c50n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-05-03 14:31           ` BPJ
     [not found]             ` <CADAJKhDUjs13moUqepKrysjLk66gOTH9yrj3-c-necyy-1z5Ug-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-05-03 15:34               ` Antonio Piccolboni
     [not found]                 ` <23782580-07fb-451c-8b1c-0accbeb09a07n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-05-03 17:28                   ` BPJ
     [not found]                     ` <CADAJKhAJ0wqtoC_N495hqn+Pimj=1O1NTWo_Aj5cEFkX1283zg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-05-08  5:52                       ` Antonio Piccolboni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADAJKhAj0-S3QgMSLOddvp2=QvKXgqbSvkb=U1T_k-NCS4CFzg@mail.gmail.com' \
    --to=melroch-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).