Convert protocol docs to markdown