Format preview works fine for me.
I edited your post and wrapped the code blocks in three ` which put 'em in code blocks