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

A Toc item does not start at new page #13

Open
PRijnbeek opened this issue Dec 17, 2017 · 2 comments
Open

A Toc item does not start at new page #13

PRijnbeek opened this issue Dec 17, 2017 · 2 comments
Assignees

Comments

@PRijnbeek
Copy link

I would expect that a new TOC item (h1) would start on a new page in the pdf. How to enforce that?

Thanks

@yakivmospan
Copy link
Owner

Add the:

<div style="page-break-before: always !important;"/>

Before your header in .md file. I'm doing like so :


### Client

The `Client` is basically a singleton shared within one process. To get an instance of the client, call the `getInstance()` method from the `TornadoClient` class.

<div style="page-break-before: always !important;"/>

### Workflow

![](assets/client-workflow-diagram.jpg)

This will start a Workflow header on new page in PDF.

@yakivmospan
Copy link
Owner

At the moment there's no possibility to enforce this automatically, only manually by changing the .md files as showed above.

But it should be not hard to provide another option to the tool, that will enable/disable this functional by adding page-break-before div before new Header in generated html.

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