Citation parser should preserve reference list ordering
Context
Reference lists imported from docx are preserved by XSweet. Running the citation parser strips out the ordered list markup. The purpose of this enhancement is to preserve the order of references in a Reference list when running the citation parser.
Proposal
When annotating references and applying the Reference
parser, the ordered list should be retained and the label
should inherit the ordered list value.
Screenshots
Current state; ordered lists are not preserved;
Label state should be inherited from the list;
Implementation (if applicable)
After the document has been parsed by XSweet, we add a data attribute (unique number) for ordered lists (ol
and li
). Paragraph text numbered is already resolved when coming through AnyStyle - the label needs to be retained for Crossref selections as well. The suggested solution is to get the label result from AnyStyle and populate the citation number across all Crossref options as well. Converting to an element should also retain the label state - so if I don't select an Anystyle or Crossref value the label state is applied.