Fenced code blocks oddity

Found odd case where some weird characters screw up fenced code blocks. Anything in fenced code blocks should be left alone. Added test to exercise bug. Also patched up an old test that was testing the wrong output. Patch fixes both. Thanks!