-
Notifications
You must be signed in to change notification settings - Fork 87
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
关于公式大小的问题 #486
Comments
感谢对本插件的支持,你提供的地址非常有帮助,以下是针对这三个问题的解答:
解决问题1的CSS如下,你可以在WordPress自定义主题的地方设定CSS: .katex {
line-height: 1em !important;
font-size: 1em !important;
}
.entry .entry-content img, .entry .entry-content video {
max-width: 100% !important;
vertical-align: top !important;
width: 600px !important;
margin: 0 auto !important;
display: block !important;
zoom: 100% !important;
}
感谢支持。 |
非常感谢您的及时回复,用您提供的样式,公式大小和图片大小的问题已经解决。
还有一些小问题如下:
问题1:在编辑器中用$$作为行间公式的标签,不能被实时解析和渲染,也就是右边的窗口显示为源码。但是用```katex标签可以实时渲染。但是文章发布后,都是正常的。
问题2:行内代码,在编辑器中渲染为一种风格,在文章发布后,又是另外的风格。一般行内代码和行间代码段的风格是不同的。行内代码是灰色背景,而独立代码段风格可以多种多样。
发布后成另一种风格,背景太黑,显得很突兀。
问题3:前台评论支持markdown,一直显示加载状态。我没有设置支持思维导图,但思维导图资源库有缺省内容。
再次感谢您的及时回复和问题处理。
祝您工作顺利,祝愿这个插件越来越好!
网址:https://www.zcr.cool/2020/09/wp-editor/
| |
张建保
|
|
lvhm2002@163.com
|
签名由网易邮箱大师定制
在2020年9月5日 14:52,Benjamin Chris<notifications@github.com> 写道:
感谢对本插件的支持,你提供的地址非常有帮助,以下是针对这三个问题的解答:
公式默认是比字体略大一点的,如果不喜欢可以通过CSS调节,目前没有设置开关的计划,但后续会在设置中增加一个自定义CSS样式/CSS样式模板的功能。
解决问题1的CSS如下,你可以在WordPress自定义主题的地方设定CSS:
.katex {
line-height: 1em!important;
font-size: 1em!important;
}
图片居中显示&大小是主题导致的,本插件暂时不会对样式进行任何处理,你也可以通过CSS解决这一问题:
.entry .entry-contentimg, .entry .entry-contentvideo {
max-width: 100%!important;
vertical-align: top !important;
width: 600px!important;
margin: 0 auto !important;
display: block !important;
zoom: 100%!important;
}
前台评论开启Markdown报错是因为与思维导图功能冲突导致,你可以先关闭思维导图看看问题是否依旧存在。该问题会在未来版本予以解决。
感谢支持。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
多谢您的回复。
1. 我在$$前空一行,可以解决这个问题。多谢指导!
3. 我删除了思维导图的地址,但保存设置后,这个地址又出来了,也就是没办法删除。我暂时关闭前端评论支持markdown功能,等待下一版本。
4. 另外一个问题,对于表格,在编辑器内同样正常显示,但发布后的文章没有正确解析,是不是和主题有关系?
编辑器内正常
发布后,没有表格:
多谢您的帮助!
| |
张建保
|
|
lvhm2002@163.com
|
签名由网易邮箱大师定制
在2020年9月6日 13:48,Benjamin Chris<notifications@github.com> 写道:
请问你有在$$包裹的LaTeX代码段前后各空一行吗?如果不空行的话,可能会出现你所描述的这个问题。多行代码段还是推荐使用latex来包裹。
行内代码的风格同样是由主题决定,编辑器不参与样式设置,你也可以通过自定义CSS的方式来解决这一问题。
是的,目前需要先删除掉思维导图的地址,再试试看评论功能是否正常。下一版本会修复这个问题。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
您好,我再补充一个新的问题,对于Wordpress的摘要,如果有公式,会把源代码显示出来,而不是渲染后的结果。
多谢!
| |
张建保
|
|
lvhm2002@163.com
|
签名由网易邮箱大师定制
在2020年9月6日 15:31,张建保<lvhm2002@163.com> 写道:
多谢您的回复。
1. 我在$$前空一行,可以解决这个问题。多谢指导!
3. 我删除了思维导图的地址,但保存设置后,这个地址又出来了,也就是没办法删除。我暂时关闭前端评论支持markdown功能,等待下一版本。
4. 另外一个问题,对于表格,在编辑器内同样正常显示,但发布后的文章没有正确解析,是不是和主题有关系?
编辑器内正常
发布后,没有表格:
多谢您的帮助!
| |
张建保
|
|
lvhm2002@163.com
|
签名由网易邮箱大师定制
在2020年9月6日 13:48,Benjamin Chris<notifications@github.com> 写道:
请问你有在$$包裹的LaTeX代码段前后各空一行吗?如果不空行的话,可能会出现你所描述的这个问题。多行代码段还是推荐使用latex来包裹。
行内代码的风格同样是由主题决定,编辑器不参与样式设置,你也可以通过自定义CSS的方式来解决这一问题。
是的,目前需要先删除掉思维导图的地址,再试试看评论功能是否正常。下一版本会修复这个问题。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
这个问题目前暂无法解决,因为LaTeX公式是在页面加载时渲染的,这里涉及到不同主题对首页摘要的处理(通常情况下摘要里是只有文本的,部分主题会直接过滤掉非文本内容)。 这里推荐的方法是使用编辑器的 |
表格样式也是由主题决定的,如果是有高度定制需求,建议学习一下CSS,非常简单的。 未来版本我也会考虑如何实现强制覆盖主题样式(很多用户都提到过这种问题),感谢反馈。 |
您好,
升级到最新版本10.2.0后,出现异常
1、进入WP-Editor.md配置界面,显示:
Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jQuery.Modal handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /www/wwwroot/zcr.cool/wp-includes/functions.php on line 5225
Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jQuery.Modal handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /www/wwwroot/zcr.cool/wp-includes/functions.php on line 5225
2、进入网站页面,显示:
Notice: Undefined index: page in /www/wwwroot/zcr.cool/wp-content/plugins/wp-editormd/src/Utils/Settings.php on line 39
www.zcr.cool
3、文章Latex解析异常
ParseError: KaTeX parse error: KaTeX doesn't work in quirks mode.
https://www.zcr.cool/2020/09/wp-editor/
thank you very much!
| |
张建保
|
|
lvhm2002@163.com
|
签名由网易邮箱大师定制
在2020年9月9日 23:49,Benjamin Chris<notifications@github.com> 写道:
Closed #486.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
抱歉之前比较忙,回复迟了一点。
将来版本我会尝试新增其他LaTeX渲染引擎,可能也会考虑提供服务端渲染(类似于知乎,参考 |
没关系的,多谢您快速回复。
我看了一下php.ini
里面已经设置为error_reporting = E_ALL & ~E_NOTICE
但我的WordPress设置为打开告警
define('WP_DEBUG', true);
define('WP_DEBUG_DISPLAY', true);
define('WP_DEBUG_LOG', true);
我把他们都设置为false了。公式可以渲染了,告警没有了,但现在的图片和logo都加载不了了。反复刷新也显示不了。www.zcr.cool 网址打开F12,不断有新告警出现。
| |
张建保
|
|
lvhm2002@163.com
|
签名由网易邮箱大师定制
在2020年9月10日 22:32,Benjamin Chris<notifications@github.com> 写道:
抱歉之前比较忙,回复迟了一点。
是10.2.0版本新引入的BUG,我会在这两周内发布新版本10.2.1予以解决,目前你可以通过在php.ini中禁用Notice的方法来临时避免这一问题。参考教程:https://blog.csdn.net/u013372487/article/details/45565079
是1的并发问题导致,你先尝试禁用Notice,再看看这个问题是否会自动解决。
将来版本我会尝试新增其他LaTeX渲染引擎,可能也会考虑提供服务端渲染(类似于知乎,参考https://www.zhihu.com/equation?tex=%5CLaTeX这个API)的方法来避免前端页面对LaTeX渲染的影响。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
请问在关闭前端Markdown评论功能后,这个问题还会出现吗? |
前端评论已经关闭markdown功能了。
| |
张建保
|
|
lvhm2002@163.com
|
签名由网易邮箱大师定制
在2020年9月10日 23:11,Benjamin Chris<notifications@github.com> 写道:
请问在关闭前端评论功能后,这个问题还会出现吗?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
不过还是感谢你的反馈,我刚刚发现一个代码逻辑上的隐患😁,已于 d667c9f 修复。 |
您好,
很奇怪,我退回到老的版本,10.1.0,图片依然无法加载。但是升级到10.2.0之前,系统确实很正常,没有任何问题啊。
我禁用WP-Editor.md插件后,图片可以正常加载。我咨询主题的开发者(我购买的商用主题),他们回复:您好,检查发现是主题的js文件没有加载,建议检查下做过什么修改,或者安装过什么插件,正常不应该会有这种情况出现的。
多谢!
|
可以先尝试一下在本插件的高级模式内开启兼容模式试试看。 |
您好,WP-Editor.md插件非常好用,但在使用中发现几个问题,请您帮忙看一下。
多谢!我的网址如下
https://www.zcr.cool/2020/09/wp-editor/
The text was updated successfully, but these errors were encountered: