Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid DOCX section break with initial heading using --top-level-division #10578

Open
adunning opened this issue Jan 30, 2025 · 1 comment
Open

Comments

@adunning
Copy link
Contributor

adunning commented Jan 30, 2025

I think it would be ideal not to generate a section break using --top-level-division for the first heading if it is the initial item in the document, should it be feasible to detect this.

For example, this results in a document with a blank first page:

pandoc -o chapter.docx --top-level-division=chapter << EOT

# Chapter 1

Sit tenetur aspernatur numquam et aliquam.

EOT
@jgm
Copy link
Owner

jgm commented Jan 31, 2025

Agreed: for documents without titles, this is an issue. I was thinking this would not be a big problem in most cases, because documents will have titles and these will go on the first page, followed by a break.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants