Update api.md

decent text format