Skip to content

fix(*): deals with multiple paragraph anystyle submissions

Dan Visel requested to merge anystyle-list-fixes-2 into main

This is using a different algorithm to figure out multiple-paragraph submissions to Anystyle.

Caveat: there are a lot of edgecases for how this can be done! One thing to note is that text is always coming back as paragraphs; it may replace the current context of where you are (this depends whether you've selected the beginning/end of paragraph, which may not be apparent to the user). So your paragraph styles may need to be reapplied; hopefully this is not too onerous.

Example: if you had something like this

Citation 1 (normal paragraph)
• Citation 2 (in bulleted list)
1. Citation 3 (in ordered list)

We're not preserving the internal paragraph styles. What you're getting back is this:

Citation 1 (normal paragraph)
Citation 2 (in bulleted list)
Citation 3 (in ordered list)

But it shouldn't be that hard to reapply the list formats.

Merge request reports