Skip to content

Commit

Permalink
Markdown: decode single quotes in fenced code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
jeherve committed Mar 22, 2014
1 parent c54fc51 commit 9c875fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _inc/lib/markdown/gfm.php
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 9c875fb

Please sign in to comment.