coreyworrell/php-markdown — comment on commit 4a48b4648ce2066c755775ed74c0ed93f1433c89
File: markdown.php line 2585
By coreyworrell:

Right. But do something like this:
~~~ php

Test

Title

";
?>

~~~

Your codeblock (which appears inside those two divs) will now have two extra tabs in front of each newline (because I'm echoing that Markdown'ed content from two tabs in). To fix this, we replace every newline with a `
` tag and that keeps our codeblock on a single line in the HTML source, and no stray or extra spaces can appear.