Created by @ richvdh:sw1v.org.
You appear to be pasting 500 lines of code! would you like to use a pastebin instead?
Which external service to rely on risks sparking a flame war, can raise privacy/policy/other issues and such services might not be available for example in corporate environments.
I suggest the existing file upload mechanism is used instead, and more care is taken to make previews for text/code work nicely.
+1 to using the existing file upload.
We should also handle this in bridges to avoid stupid Matrix clients getting it wrong: matrix-org/matrix-appservice-irc#56. I'd argue that one is higher priority, as a more general solution to the problem.
the IRC bridge now handles this, making it slightly less urgent, but would still be nice.
Most helpful comment
Which external service to rely on risks sparking a flame war, can raise privacy/policy/other issues and such services might not be available for example in corporate environments.
I suggest the existing file upload mechanism is used instead, and more care is taken to make previews for text/code work nicely.