Hi ,
I have a complex xhtml file with css styling. When i try to publish it to confluence python REST api i'm seeing 'Error parsing xhtml'. Tried to validate in w3c html validator i see many errors in the document. So, upon converting to html5 , i was able to publish the document but the styling is not applied properly. It would be great if i can publish the html content with perfect rendering in the confluence. Any pointers would be helpful
Sample python code :
payload = json.dumps(
{
"type": "page",
"title": page_title,
"ancestors": [{"id":parent_page_id}],
"space": {"key":space_key},
"body": {
"storage":{
"value": html_content,
"representation": "storage"
}
}
} )
response=requests.post(url,headers=headers,data=payload,auth=auth)