在wordpress中与markdown插件的冲突
Closed this issue · 1 comments
hausen1012 commented
我在wordpress 中使用了 https://github.com/terrylinooo/githuber-md/ 这个插件,再使用 如下代码过滤
function pk_chinese_format($content)
{
include_once dirname(__FILE__) . '/../lib/ChineseTypesetting.php';
$typesetting = new ChineseTypesetting();
$content = $typesetting->insertSpace($content);
$content = $typesetting->removeSpace($content);
return $typesetting->full2Half($content);
}
if (pk_is_checked('chinese_format')) {
add_filter('the_content', 'pk_chinese_format', 199);
}
sparanoid commented
这个 issue 好像跟本项目没有直接关系?如果你使用的是 https://github.com/jxlwqq/chinese-typesetting 这个项目,可能是该项目与 githuber-md 的兼容性导致的,请前往对应的仓库去提 issue 或按照项目本身提供的反馈渠道进行反馈