You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.
When a page doesn't have any H1 tags, then the previous section is carried over. That creates a bug where the previous page had multiple sections. So the following takes place:
On the first page, the section is determined as being the topmost H1 tag.
On the first page, any additional H1 tags are ignored.
On the second page, there are no H1 tags, so the topmost H1 tag from the previous page is the "section". I suspect that subsections (and subsubsections) are similarly affected.
If a page doesn't have any H1 tags, the bottom-most H1 tag of the previous page should be used as the section.
<div style="page-break-after:always;">
<h1>Title Page</h1>
</div>
<div style="page-break-after:always;">
<h1>My first section</h1>
<p>This is a section</p>
<h1>My second section</h1>
<p>Here is some text, for the second section</p>
</div>
<div style="page-break-after:always;">
<p>This is text in the second section. The header should say that it is the second section</p>
<p>Here is some text, for the second section</p>
</div>
<div style="page-break-after:always;">
<h1>My third Section</h2>
<p>Here is some text, for the this section</p>
</div>
Expected results
The third page header should say "My second section"
The text was updated successfully, but these errors were encountered:
Hi,
When a page doesn't have any H1 tags, then the previous section is carried over. That creates a bug where the previous page had multiple sections. So the following takes place:
If a page doesn't have any H1 tags, the bottom-most H1 tag of the previous page should be used as the section.
Steps to reproduce
Use this command with a minimal example:
input file - basic.html
Expected results
The third page header should say "My second section"
The text was updated successfully, but these errors were encountered: