Fixed failure to encode Markdown for public posts

We forgot to call the markdown library on markdown posts.
Also cleaned up the public_posts.html file a little bit.