Commit 8067cf60 authored by julien's avatar julien Committed by Fred Chasen

fix page counters and jest version

parent bbdb1b58
......@@ -37,6 +37,12 @@
font-size: 24px;
margin-top: 0;
}
.start {
counter-reset: page;
}
</style>
......@@ -48,7 +54,7 @@
<section>
<h1>Lorem ipsum dolor sit amet</h1>
<h1 class="start">Lorem ipsum dolor sit amet</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi non suscipit odio. Aenean ut ligula id mauris efficitur tincidunt vitae non leo. In convallis convallis leo, eget molestie metus imperdiet eu. Praesent pharetra, leo a laoreet mattis, ligula nisl commodo ante, non vestibulum nisi lacus eget magna. Maecenas scelerisque nibh ac felis egestas, egestas elementum risus pellentesque. Nulla iaculis ut leo a iaculis. Donec vel sodales dolor, vel fringilla elit. Vivamus aliquam diam eu maximus elementum. Integer eu urna at felis fermentum hendrerit.
</p>
......
......@@ -111,7 +111,7 @@ class Counters extends Handler {
countersArray.push(`${counters[c].name} 0`);
}
// Add to pages to allow cross page scope
this.insertRule(`.pagedjs_pages { counter-reset: ${countersArray.join(" ")}}`);
this.insertRule(`.pagedjs_pages { counter-reset: ${countersArray.join(" ")} pages var(--pagedjs-page-count)}`);
}
insertRule(rule) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment