Moved markdown logic into Post model