Extract code blocks from Markdown streams