Steps to reproduce:
- Go into a heading
- Change heading level from 2 to 3 (i.e.)
Expected output: Only the number of = should change
Actual output: Number of = is changed correctly but the newline before the heading is moved under the heading now.