attempted to refactor post.rb rendering with markdown