public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Albert Krewinkel <albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Is --section-divs activated by default and is there a way to turn it off?
Date: Thu, 02 Jun 2022 11:26:27 +0200	[thread overview]
Message-ID: <8735gn5rdn.fsf@zeitkraut.de> (raw)
In-Reply-To: <c1f56919-e2c9-47fb-99e5-1f0cedfe9181n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

Hi Mattia,

Mattia Tezzele <zool.bib-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Hi everyone,
>
> I'm converting from docx to HTML and in my output all my sections get
> wrapped in <section> tags, even if I didn't specify --section-divs in
> my command. This somehow breaks the spacing before headings with the
> CSS I'm using (which I have no way to modify).
>
> [...]
>
>
> This is the command I'm using:
>
>     pandoc document.docx -t html --number-sections --number-offset=1
>     --shift-heading-level-by=1

It looks like `--number-offset` is causing this behavior, but I'm not
sure why. It looks like a bug to me, please report it at
https://github.com/jgm/pandoc/issues/new

Cheers,
Albert


-- 
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe  e836 388d c0b2 1f63 1124


  parent reply	other threads:[~2022-06-02  9:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-02  8:50 Mattia Tezzele
     [not found] ` <c1f56919-e2c9-47fb-99e5-1f0cedfe9181n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-02  9:26   ` Albert Krewinkel [this message]
     [not found]     ` <8735gn5rdn.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-06-02 11:31       ` Mattia Tezzele

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=8735gn5rdn.fsf@zeitkraut.de \
    --to=albert+pandoc-9eawchwdxg8hfhg+jk9f0w@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).