add format spec to markdown writer