Previously parsing would break if the code block contained a string of backticks of sufficient length followed by something other than end of line. Closes #5304.