
Like other inline markup, whitespace immediately after opening is not allowed
.
foo$ 1+1 = 2$ bar
.
<p>foo$ 1+1 = 2$ bar</p>
.


Neither is whitespace immediately before closing
.
foo $1+1 = 2 $bar
.
<p>foo $1+1 = 2 $bar</p>
.
