Added special case for a fenced code block at the start of a file.
Added more cases for fenced code blocks.