Avoid filtering markdown code blocks

closes #1045
- Fixed markdown code block format issue.
- Added test case to verify fix.