Skip to content

Commit

Permalink
Merge pull request Automattic#404 from jeherve/403-github
Browse files Browse the repository at this point in the history
Markdown: decode single quotes in fenced code blocks
  • Loading branch information
mattwiebe committed Mar 26, 2014
2 parents 0eca9e8 + 9c875fb commit 903bba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _inc/lib/markdown/gfm.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function codeblock_restore( $text ) {
* @return string Codeblock with unescaped interior
*/
public function do_codeblock_restore( $matches ) {
$block = html_entity_decode( $matches[3] );
$block = html_entity_decode( $matches[3], ENT_QUOTES );
$open = $matches[1] . $matches[2] . "\n";
return $open . $block . $matches[4];
}
Expand Down

0 comments on commit 903bba7

Please sign in to comment.