The following Confluence XHTML:
<div>
<a href="https:>
<ac:structured-macro ac:name="random-macro">
<ac:parameter ac:name="param">value</ac:parameter>
</ac:structured-macro>
</a>
</div>
Produces the following events (which seems correct):
beginDocument
beginGroup
beginParagraph
beginLink [Typed = [true] Type = [url] Reference = [https:onMacroStandalone [random-macro] [param=value]
endLink [Typed = [true] Type = [url] Reference = [https:endParagraph
endGroup
endDocument
But this leads to the following, which confuses XWiki's WYSIWYG editor:
(((
[[
{{random-macro param="value"/}}>>url:https:)))
Expected:
((( [[{{random-macro param="value"/}}>>url:https://perdu.com||shape="rect"]] ))) This seems to be because the beginning of a paragraph is enforced inside the link, although the link is already in a paragraph. |