Skip to content

Commit

Permalink
fix to [355](#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaxsonWang committed Sep 16, 2019
1 parent 5919677 commit cdc62ed
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/App/WPMarkdownParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ public function transform($text) {
}
}

// 不知为何这里 > 无法转义
$text = str_replace(">", '>', $text);
$text = $this->entity_decode_editormd($text);

// run through core Markdown
$text = parent::transform($text);
Expand Down Expand Up @@ -426,8 +425,6 @@ public function _doFencedCodeBlocks_callback($matches) {
$pre_attr_str = $this->code_attr_on_pre ? $attr_str : $dataLanguage;
$code_attr_str = $this->code_attr_on_pre ? '' : $attr_str;
$codeblock = "<pre$pre_attr_str><code$code_attr_str>$codeblock</code></pre>";

$codeblock = $this->entity_decode_editormd($codeblock);
}
return "\n\n" . $this->hashBlock($codeblock) . "\n\n";
}
Expand Down

0 comments on commit cdc62ed

Please sign in to comment.