When editing a case description, I choose the option to add code. I copy some well-formatted JavaScript code from VS Code on my Mac, and paste in the provided grey box in the JIRA case description. That strips out all the link breaks and ruins the code formatting.
It turns code like this:

Into code like this:

that makes it really hard to read. any help would be greatly appreciated. thanks!