Smarter preprocessing for Markdown; return unprocessed if no code found