Rm boilerplate function
Refactor and test remark rendering