Implemented markdown and fixed bugs (thanks to Felix)
attempted to refactor post.rb rendering with markdown