Fix up the code blocks and spans in the documentation