purple-mattermost icon indicating copy to clipboard operation
purple-mattermost copied to clipboard

code displayed incorrectly: includes html tags

Open wom-bat opened this issue 5 years ago • 3 comments

When a post includes code marked in the input with three backticks, it is displayed as a verbatim dump including the < br/ > and &gt; etc., tags that mattermost puts in. Example:

` ` `
uint64_t x;
return (uint16_t) x>>48;
` ` `

displays as:

<br>uint64_t x;<br>return (uint16_t) x &gt;&gt; 48;<br>

wom-bat avatar May 09 '19 01:05 wom-bat

Looks like this is only for markdown generated by the plugin; people using a real mattermost client or the web interface can create code snippets that display correctly.

wom-bat avatar May 09 '19 01:05 wom-bat

More info: Sending the code sends it verbatim to the server; but it is displayed incorrectly in the local puidgin instance only; other clients see the result correctly.

wom-bat avatar May 09 '19 23:05 wom-bat

What's more if I 'edit' a post in the webbrowser interface, the result is displayed correctly in Pidgin.

wom-bat avatar May 10 '19 00:05 wom-bat