Resume ordered/numbered lists interrupted by other markup.
- Place list-resume.js into your pmwiki/pub directory.
- Add to config.php this line:
No configuration is required.
In a wiki page, use the wikistyle
%list resume% on the first item, on all lists that are connected (including the first list). For example:
# %list resume% item one # item two Here some other markup, then the numbering needs to continue. # %list resume% item three # item four # item five
Here some other markup, then the numbering needs to continue.
If you have different lists that each needs to be resumed, place wikistyles with additional keywords like
%list resume-name% (case sensitive):
# %list resume-dairy% milk # yogurt Note, different list follows. # %list resume-fruit% apple # pear # apricot Some markup, then the first list resumes. # %list resume-dairy% cheese # cream # cheesecake Other markup, then the second list resumes. # %list resume-fruit% ananas # banana
Note, different list follows.
Some markup, then the first list resumes.
Other markup, then the second list resumes.
As you can see, the resumed lists do not need to immediately follow one another. Some of the lists can even be nested in different levels: as long as they have the wikistyle on their first item, their numbering will continue.
- The wikistyle
%list resume%is placed on the first item on all lists that are connected including the first list.
- The recipe is not compatible with the wikistyle
%item value=X%. Connected/resumed lists should not use that wikistyle, the numbering is automatic.
Change log / Release notes
- 20180312: First public release, ready to be tested.
Written and maintained by Petko.