twitter-archive-parser
twitter-archive-parser copied to clipboard
Bug: markdown inside tweets is not escaped
Consider https://twitter.com/twoscomplement/status/1580380783767756801 - note the text __VA_ARGS__
The tweet body text is copied verbatim by parser.py, resulting in VA_ARGS when the markdown is rendered
Another example:
We previously made a smaller version out of cardboard: https://mobile.twitter.com/_tim_hutton_/status/1010638114417766400
The underscores break the URL:
I haven't actually tried it yet, but here's at least a hint to start with:
This could probably be solved by using something similar to this example (@lenaschimmel did a quick research and found this) somewhere inside the convert_tweet method.
Related, but only for the user handles of DMs: #117