Wrap code with code block

Also some hacks for nested list.