Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xhtml tags are interpreted within confluence structured macro tags #372

Closed
daijithegeek opened this issue Mar 17, 2023 · 1 comment
Closed
Labels

Comments

@daijithegeek
Copy link

daijithegeek commented Mar 17, 2023

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Create a markdown documentation containing an xhtml tag within a warning box.

!!! danger "Use `<ViewLoader>` instead of sharing components across plugins"
    Sharing components across plugins is dangerous as they will be built with a version of React controlled in one plugin.

You'll get the following error:

Content: 
 139 |[...]
 140 | ]]></ac:plain-text-body></ac:structured-macro>
>141 | 
           ^                            [ FAIL ]

In Api.php line 76:
                                                                               
  Client error response                                                        
   [url] https://confuence.mycompany/rest/api/content/123456       
   [status code] 400                                                           
   [message] Error parsing xhtml: Unexpected EOF; was expecting a close tag f  
  or element <ac:parameter>                                                    
   at [row,col {unknown-source}]: [141,6]                           

Expected behavior
The page is published to confluence; it contains a warning macro and the xhtml tag is displayed.

@onigoetz
Copy link
Contributor

Fixed in https://github.com/dauxio/daux.io/releases/tag/0.22.0

However, Macro titles in confluence cannot contain HTML, any HTML will be escaped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants