Most of the code highlighters do not support br tags as a line break. So, you need to replace all the br at into \n . Hope it will work. It is working for me.
br
\n