In line equation messed up with New line

Use case or problem

was trying to import my note from notion to obsidian, and, in some instances, I wrote some in-line equation whit some “New Line” in it, this messed with the syntax of obsidian :
I’m attaching a screenshot of the messed up text for reference.

immagine_2022-01-10_191059

Proposed solution

to avoid this issue i propose to ignoring che “New line key” in $ SOME COMPLEX LATEX $ as it happens in the case of $$ SOME COMPLEX LATEX $$