Steps to reproduce:
- Find a page which has some categories and some content after the categories. For example, a page which still has manual interwiki links (e.g. https://de.wikipedia.org/wiki/Nomenklatur_%28Biologie%29) or any biography on de.wikipedia (e.g. https://de.wikipedia.org/wiki/Rolf_Nevanlinna).
- Open it for editing in VE, add a new category.
- Review the change (or just save).
Expected result:
The wikitext for the new category is placed in its own line after the last existing category.
Actual result:
The wikitext for the new category is placed at the very end, creating a new block of categories, separated by some other content from the other categories.
While in most wikis there shouldn't be many articles with more content after the categories, at least German Wikipedia currently has at least 589,898 articles which use the template Personendaten, which is placed after the categories, which means VE/Parsoid will create wikitext in a form the next source code editor won't be happy with.