used <code> tag for codeblocks
stripped first and last newline in code blocks
fixed code block expected output
added test for code block and inline code