Hi,
I am trying to use citation tool and Citoid with the VisualEditor to allow easy management of references on my MediaWiki instance.
When I insert a link, Citoid service retrieves correctly the content of the source and build a reference accordingly. However, the following is being added at the end of the reference:
"<templatestyles src="Module:Citation/CS1/styles.css"></templatestyles>"
It seems that Parsoid is directly responsible of this bug. Indeed, when I add a reference inside VisualEditor, a POST to the API is being made, which gives the following response:
As you can see, the content is not parsing the templatestyles tags as it should, thus, those are displayed in VisualEditor.
I don't know if the following issues are related, and if so, to what extent:
https://phabricator.wikimedia.org/T88019
https://phabricator.wikimedia.org/T188143
Notice that when I save the edit, the tags are dropped but the reference is still here, as it should.
Does someone know what is causing this issue, and how can I resolve it? Thank you in advance.