

WP Githuber MD用了markdown編輯器,顯示的代碼內(nèi)容帶有以下內(nèi)容:
<code class="language-shell">
</code><button class="copy-button">Copy</button>
請(qǐng)問怎么去掉他呢?


WP Githuber MD用了markdown編輯器,顯示的代碼內(nèi)容帶有以下內(nèi)容:
<code class="language-shell">
</code><button class="copy-button">Copy</button>
請(qǐng)問怎么去掉他呢?
臨時(shí)解決方法:修改WP的代碼? wp-includes/post-template.php 文件
添加紅框內(nèi)容

$content = str_replace( '<code>', '', $content );
$content = str_replace( '<code class="language-shell">', '', $content );
$content = str_replace( '<code class="language-python">', '', $content );
注意:,java,c, cpp代碼形式按圖中以此類推添加
來(lái)自:88運(yùn)維https://www.88ops.com
好像不起作用
應(yīng)該是什么插件加了這些代碼吧