Closed dshean closed 4 years ago
To clarify, this is reproduced by interactively creating a code block in the comment using backticks, not using the button.
Thanks for reporting @dshean.
Turned out our regex for detecting italics was very permissive. I have restricted it to not trigger for variable names like my_long_var. This should fix the issue you are facing.
Feel free to reopen if you still see something off.
Cheers!
Reopening for a bit - turns out the negative lookahead I used in the regex is not supported in Firefox & Safari yet. So I had to revert the change. Will deploy a fix in some time.
Fixed, resolving.
I try to add a comment like:
The parser incorrectly handles the underscores in the variable name within the code block, so the final comment looks like:
In other cases, this creates real formatting issues with the code block and surrounding text.