Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): correctly reset PTE list counts
I was reading the docs on [`counter-reset`](https://developer.mozilla.org/en-US/docs/Web/CSS/counter-reset#description) when this paragraph suddenly stood out: > After creating a counter using `counter-reset`, you can adjust its value by > using the `counter-set` property. This is counterintuitive because, despite > its name, the `counter-reset` property is used for creating and initializing > counters, while the `counter-set` property is used for resetting the value > of an existing counter. This made me realise that we probably used `content-reset` somewhere, incorrectly, where we actually meant to use `counter-set`. Before this change, counters on each list level would not reset at all across a PTE document. Now, the counters reset properly. Before: ``` 1. This a. is i. nested 1. list This is a paragraph 2. This ii. is b. another nested 2. list ``` After: ``` 1. This a. is i. nested 1. list This is a paragraph 1. This i. is a. another nested 1. list ```
- Loading branch information