Codeblock fixes

I fixed few issue related to codeblock conversion:

- Markdown characters are handled properly inside code blocks (e.g. underscore "\tf_s/1, t_s/2", open bracket "\t[a]", inline elements "\t[1 -1] [-1 1]", etc.).
- Two code blocks separated by empty lines are converted to single code block.