refactor markdown rendered into posts model

markdown assignment