I edit math documents using Obsidian, and I recently need to migrate some of them to LaTeX. One thing I’ve noticed in Obsidian’s exported PDFs is that inline LaTeX is never broken in the middle. If an inline LaTeX expression exceeds the page width, Obsidian automatically moves it to the beginning of the next line.
Can someone explain how Obsidian achieves this? Understanding this might help me replicate this behavior in LaTeX.