EDT-663 Header tags are being added to normal text below the header

https://youtrack.mindtouch.us/issue/EDT-663