Question more than issue
Closed this issue · 5 comments
EMarcais commented
Hi!
Thanks for the module this is perfect.
I'm working on getting a text parsed correctly to be displayed as a paragraph with some newlines.
Don't think it's an issue but i'm stuck on this one.
I tried:
$text.replace(". ",". \n\n")
New-AdaptiveTextBlock -Text "$text" -Wrap
and the result in -returnJson is:
BlabLaBla. \\n\\nBlablaBla
But the only think that is displayed is the \n\n characters in the text visible in Teams.
Best!
PrzemyslawKlys commented
You should use "PowerShell" way for new lines.
New-AdaptiveTextBlock -Text "Now that we have defined the main `n`n rules and features of the format, we need to produce a schema and publish it to GitHub. The schema will be the starting point of our reference documentation." -Wrap
This will be converted to \n\n and it will work.
EMarcais commented
This is the best results:
replace(". ",". \`n")
PrzemyslawKlys commented
It has to be double n. Not just one.
EMarcais commented
To me this is the only it behave like it should. This is weird.
PrzemyslawKlys commented
As long as it works ;)