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

Set-ConfluencePage updates page with plain text only #215

Open
hajwil opened this issue Nov 1, 2024 · 0 comments
Open

Set-ConfluencePage updates page with plain text only #215

hajwil opened this issue Nov 1, 2024 · 0 comments

Comments

@hajwil
Copy link

hajwil commented Nov 1, 2024

ConfluencePS version 2.5.1 with PS 7 and 5
I try to use Set-ConfluencePage to update a Confluence page with table style information in html format
Set-ConfluencePage -PageID -Body $Body -Convert

The $Body variable contains

<table><tbody>
<tr>
<th><p> id </p></th>
<th><p> name </p></th>
<th><p> version </p></th>
<th><p> status </p></th>
<th><p> userCapabilities </p></th>
</tr>
<tr>
<td><p> 88 </p></td>
<td><p> SRV-VMBUILD01-01 </p></td>
<td><p> 3.220.0 </p></td>
<td><p> online </p></td>
<td><p> CreateEnvironment=1; SqlPowershellModule=1 </p></td>
</tr>
</tbody></table>

This will only be shown as plain text in Confluence.
Also embedding the html string into structured macro template, it only shows the text
"<ac:structured-macro ac:name='html'>ac:plain-text-body</ac:plain-text-body></ac:structured-macro>"

This is not converted to a table style page. How to convert csv or html to a table structured page?

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

No branches or pull requests

1 participant