There is 1 comment.
 
 
MediaWiki tools / cid:jira-generated-image-avatar-e082130c-c663-43b7-b423-419ecde5dc8d MEDIAWIKI-96 Open

MediaWiki Cite extension handling

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-93659abb-024a-470c-a45f-16ac17b71416 Thomas Mortagne on 20/May/26 16:22
 
The current conversion only takes into account plain text tags and ignore everything else (in the case of this a link for example, the content of the ref is identified as link tag and so is ignored). It's actually the same for everything that end as XWiki macros, actually (in this specific case the macro is {{footnote}}).

The good news is that the bliki parser seems to properly parse the content of the reference. So the fix would involve doing something similar to what was done in the Confluence importer: allow indicating a target syntax so that we can do a conversion from tags to the indicated target syntax to produce the macro content (which can only be a String in the XWiki model right now). In terms of code it means everything which manipulate https://github.com/xwiki-contrib/confluence/blob/confluence-9.94.0/confluence-syntax-xhtml/src/main/java/org/xwiki/contrib/confluence/parser/xhtml/ConfluenceXHTMLInputProperties.java#L97-L110.