-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
ConvertTo-StorageFormat UnknownMacroMigrationException #177
Comments
converting an array of c# objects is probably unknown to confluence. |
if you are looking for a able format, try this: [PSCustomObject]@{
Path = 'C:\Temp\Test.txt' #[System.String]
LastAccessTime = '12.11.2035' #[System.DateTime]
},
[PSCustomObject]@{
Path = 'C:\Temp\Test.txt' #[System.String]
LastAccessTime = '12.11.2035' #[System.DateTime]
} | ConvertTo-ConfluenceTable | ConvertTo-ConfluenceStorageFormat |
I would expect the following Output:
|
The problem with your case is the chars that confluence tries to convert into macros. ConvertTo-ConfluenceStorageFormat ($JobDescription -replace "#", "#" -replace "@", "@" -replace "\[", "&#
91;" -replace "\{", "{") |
Thank you Oliver, that works for me. I created a pull request (#178). Would be nice to add the ability to handle this cases directly with the function |
Description
Converting a string to confluence storage format with
ConvertTo-ConfluenceStorageFormat
returns the errorcom.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException
.Steps To Reproduce
Expected Output
Your Environment
Confluence 7.0.1
The text was updated successfully, but these errors were encountered: