<span style="white-space:nowrap">...</span>
around the material that should not be broken. It would probably be
possible to write a preprocessor that would insert such spans
automatically, but one is not currently in the plans.
For (2), that is simply how display math works. The mathematics is
typeset on its own line, separated from the material around it. As I
recall, you are using TeX, and that is certainly how TeX works; you
must include the punctuation within the displayed math itself, e.g.,
"the variable $x$ appears once in the fraction $${1\over 1+x}.$$ "
That is not elegant, but that is what TeX users have been doing for
more than 30 years.
Davide