-
Notifications
You must be signed in to change notification settings - Fork 34
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
Broken formatting in chat link #944
Comments
I managed to mis-click and delete the comment on MS, and also mess up the onebox in the source chat message of your deleted comment on Ethereum. I, unfortunately, didn't check to see if your original comment on Ethereum had been deleted prior to attempting to recreate the MS comment. I'm sorry about that. I've returned the chat message to a reasonable semblance of what it was, but using Markdown. I was attempting to re-create the MS comment which I'd accidentally deleted. It's strange that it's not accepting Markdown in this, but does accept Markdown in other such comments. After my unfortunate misadventure attempting to return things to the way they were, it's clear that the issue is when forwarding a oneboxed message. A onebox is moderately complex HTML, which MS somewhat renders. However, it doesn't render the Markdown that was also there. Having the new attribution in Markdown works under other circumstances. We can try changing the attribution to being in HTML, rather than Markdown to see if that works for both oneboxes and Markdown based chat replies. |
Another example of the issue for another forwarded onebox: https://metasmoke.erwaysoftware.com/post/383442 The source text of the comment on MS is:
Which renders in HTML on MS as:
So, MS strips out quite a bit of the HTML when rendering the comment and doesn't process the Markdown. It looks like using HTML for the attribution will work in these cases, and should work in the cases where it's mixed with Markdown from forwarded non-oneboxed chat messages. |
I updated the code to have the attribution in HTML instead of Markdown and did some testing here, which produced some comments on this MS post. While the attribution is now displayed for a similar onebox of a chat comment, there was another issue which came up. This chat message didn't result in an MS comment being posted. It's unclear at this time why that is the case, or if a similar attempt would have produced an MS comment prior to this most recent change, or prior to adding the code for attribution. |
The new issue is that
can't be added as a comment. It doesn't have anything to do with the new code. Trying to manually add that as a comment doesn't work either. The issue is that the |
Is the DB on MS using utf-8 collation or an ascii collation? UTF8 not being supported might be one of the string value errors causes. |
Yes, what range of characters are supported in that field is almost certainly the issue. We can do any of:
We've had similar issues as this with other fields. In general, those have been resolved by changing the definition of the field in the database. |
I've added a hack to SD to allow forwarding a oneboxed moderator comment into an MS comment by replying to a report in chat (example in this post below the comment with |
I've created Issue #946 which covers the remaining general issue of Unicode characters in MS comments. As far as I'm aware, the problem which this issue reported has been addressed. It's that subsequent investigation highlighted another existing issue which has been present for a long time, but I don't recall having an Issue which addressed it. |
My comment on https://metasmoke.erwaysoftware.com/post/383440 is oddly mixing HTML and Markdown formatting, where the latter is displayed verbatim.
Attempting to edit the message reveals that the working links are HTML and the non-working ones are Markdown.
The text was updated successfully, but these errors were encountered: