Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在wordpress中与markdown插件的冲突 #192

Closed
hausen1012 opened this issue Jul 25, 2023 · 1 comment
Closed

在wordpress中与markdown插件的冲突 #192

hausen1012 opened this issue Jul 25, 2023 · 1 comment
Labels
invalid This doesn't seem right

Comments

@hausen1012
Copy link

我在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);
}

会导致markdown代码块有些被压缩成一行
image
正常应该是这样。
image

@sparanoid
Copy link
Owner

这个 issue 好像跟本项目没有直接关系?如果你使用的是 https://github.com/jxlwqq/chinese-typesetting 这个项目,可能是该项目与 githuber-md 的兼容性导致的,请前往对应的仓库去提 issue 或按照项目本身提供的反馈渠道进行反馈

@sparanoid sparanoid added the invalid This doesn't seem right label Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants