I am looking for a way to automatically number examples throughout an R markdown document.
I know that automatic numbering is possible with a list, such as:
1. Item 1
1. Item 2
1. Item 3
The problem is that this will not work when the items appear in different sections, i.e.
# Section 1
1. Item 1
# Section 2
1. Item 2
In this case, the numeration resets, so both of these Items end up with the number 1.
How do I resume numeration in R markdown across sections?