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
Would it please be possible to modify the script so that there could be a page break even for nested <ol> or <ul> elements?
For example: <ul> <li></li> <li> <p></p> <div> <ol> <li></li> <li></li> </ol> </div> </li> </ul>
Now when I have some long text with bullets (ol/ul) that are nested inside other bullets, the page doesn't break properly, or I have unnecessarily long spaces there.
I tried to add li inside your script like this: snippets = pages[p].querySelectorAll("h1, h2, h3, h4, h5, h6, p, ul, ol, li");
but that does't work because in the resulting HTML code then those <li> elements are not wrapped in corresponding <ul> or <ol>.
I would be really grateful if you could get this problem resolved.
Thank you very much in advance for any reply.
The text was updated successfully, but these errors were encountered:
Would it please be possible to modify the script so that there could be a page break even for nested
<ol>
or<ul>
elements?For example:
<ul>
<li></li>
<li>
<p></p>
<div>
<ol>
<li></li>
<li></li>
</ol>
</div>
</li>
</ul>
Now when I have some long text with bullets (ol/ul) that are nested inside other bullets, the page doesn't break properly, or I have unnecessarily long spaces there.
I tried to add
li
inside your script like this:snippets = pages[p].querySelectorAll("h1, h2, h3, h4, h5, h6, p, ul, ol, li");
but that does't work because in the resulting HTML code then those
<li>
elements are not wrapped in corresponding<ul>
or<ol>
.I would be really grateful if you could get this problem resolved.
Thank you very much in advance for any reply.
The text was updated successfully, but these errors were encountered: