ehuss / Sublime-Wrap-Plus

Enhanced "wrap lines" command for Sublime Text 2 or 3.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't break LaTeX math mode

MartinThoma opened this issue · comments

It would be nice if LaTeX math mode would not be broken. It should be handled as a single block.

This means the line

asdf asdf asdf asdfsdf sdfsd fasdfasd fasdf asdfasdfasdf dfsasdfasdfas dfasd $a + b = c$ adsfa sdfasdf asdf s.

should be broken to

asdf asdf asdf asdfsdf sdfsd fasdfasd fasdf asdfasdfasdf dfsasdfasdfas dfasd
$a + b = c$ adsfa sdfasdf asdf s.

NOT to

asdf asdf asdf asdfsdf sdfsd fasdfasd fasdf asdfasdfasdf dfsasdfasdfas dfasd $a
+ b = c$ adsfa sdfasdf asdf s.

I definitely second this!

I am experiencing this issue as well; it is best if line break ensures that $ is the first character on the line as opposed to breaking a $ across multiple lines.