api and fix to markdown