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

code displayed incorrectly: includes html tags #98

Open
wom-bat opened this issue May 9, 2019 · 3 comments
Open

code displayed incorrectly: includes html tags #98

wom-bat opened this issue May 9, 2019 · 3 comments

Comments

@wom-bat
Copy link
Contributor

wom-bat commented May 9, 2019

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
Copy link
Contributor Author

wom-bat commented May 9, 2019

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
Copy link
Contributor Author

wom-bat commented May 9, 2019

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
Copy link
Contributor Author

wom-bat commented May 10, 2019

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

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