small api for rendering markdown