There are 2 updates.
 
 
Confluence / cid:jira-generated-image-avatar-49ed213d-0495-4ae5-94c7-ab5524402dd6 CONFLUENCE-260 Open

Use monospace format instead of the limited code macro to convert the <code> XHTML tag with complex content

 
View issue   ·   Add comment
 

2 updates

 
cid:jira-generated-image-avatar-f24a8e19-a281-4791-998a-e9885463a113 Changes by Raphaël Jakse on 22/Aug/24 12:47
 
Summary: Use monospace format instead of the limited code macro to convert the <code> XHTML tag with complex content
Description: Converting <code> to the code macro sometimes lead to incorrect results, for example when there are links inside the <code> macro. Converting to 
{noformat}
##content##{noformat}
instead of
{noformat}
{{code language="none"}}
content
{{/code}}{noformat}
addresses this limitation.


This should only be done for code tags with complex content, because the monospace formatting is technically not the right conversion for code, a code macro is more suitable for semantic and styling reasons. See https://jira.xwiki.org/browse/CONFLUENCE-120 and https://jira.xwiki.org/browse/CONFLUENCE-56.