Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi,

    Simply add one line can fix this trouble.

    File: jetpack-markdown/lib/markdown/gfm.php
    Line: 150
    after: $block = esc_html( $block );
    add: $block = str_replace(‘\\’, ‘\\\\’, $block);

    Like this:

    public function do_codeblock_preserve( $matches ) {
    	$block = stripslashes( $matches[3] );
    	$block = esc_html( $block );
    	$block = str_replace('\\', '\\\\', $block);
    	$open = $matches[1] . $matches[2] . "\n";
    	return $open . $block . $matches[4];
    }

    Enjoy~ By: PowerXing

Viewing 1 replies (of 1 total)