Markdown fixes for API Reference

Fixes markdown issues with code blocks and lists.