I'm having trouble adding line breaks to my posts on Yammer through the REST API. While I can include line breaks when posting directly on Yammer, I can't seem to achieve the same result programmatically. It appears that Yammer may be escaping the \n line break characters. I've tried experimenting with the 'is_rich_text' parameter, but it doesn't seem to have any effect unless I'm posting an announcement. Has anyone encountered this issue before or have any suggestions on how to solve it?
const body = `${summary} \n ${url} \n line break`;
const apiUrl = `messages.json`;
return yam.platform.request({
dataType: 'json',
data: {
'body': body,
'is_rich_text': 'true',
'title': title
},
method: 'POST',
url: apiUrl,
success: (data: any) => {