halo-sigs / plugin-katex Goto Github PK
View Code? Open in Web Editor NEW为默认编辑器和文章渲染提供 KaTeX 支持。
Home Page: https://halo.run/store/apps/app-ISCsX
License: GNU General Public License v3.0
为默认编辑器和文章渲染提供 KaTeX 支持。
Home Page: https://halo.run/store/apps/app-ISCsX
License: GNU General Public License v3.0
在使用支持pjax的主题后导致首次进入公式无法渲染必须重新刷新才可渲染显示
我想要渲染Latex公式,
stackedit: .katex--inline
这一行配置要加在哪里?插件那里写的没看懂
目前插件正常情况下可以工作,但是需要做一些兼容性方面的改进 。
目前公式渲染的方式为:
renderMathInElement(document.body, {
// customised options
// • auto-render specific keys, e.g.:
delimiters: [
{left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false},
{left: '\(', right: '\)', display: false},
{left: '\[', right: '\]', display: true}
],
// 鈥� rendering keys, e.g.:
throwOnError : false
});
可能的改进点:
<Math></Math>
Katex 插件启用后无法正常渲染 Katex 公式,无论是行间公式,行内公式均无法正常显示
katex 代码:
$$n_{ka} = \sum \limits_{i = 1}^a {(i -1) \times k + 1} = \frac {(1 + k(a - 1) + 1) \times a}{2}$$
$n_{ka} = \sum \limits_{i = 1}^a {(i -1) \times k + 1} = \frac {(1 + k(a - 1) + 1) \times a}{2}$
$$
n_{ka} = \sum \limits_{i = 1}^a {(i -1) \times k + 1} = \frac {(1 + k(a - 1) + 1) \times a}{2}
$$
以上代码均无法正常渲染
docker halo 2.14.0;katex 2.1.0
在markdown编辑器中书写$^{[1]}$
可以正常显示为上标,但发布后无法正常显示,显示为latex原文$^{[1]}$
Currently, Halo 2.7 already supports the extension of the editor, now it's time to extend the KaTex input of the editor with this plugin.
Related documentation and issues:
halo博客无法实现自定义元素(标签)的渲染,需要依赖Tool-Bench插件,但是katex插件与Tool-Bench插件冲突,导致公式无法渲染。
DioxideCN/Tool-Bench#4
halo版本:2.10
katex版本:2.0.0
文章地址: https://pandalab.me/archives/different_perspective_of_line_regression
插件启用截图:
文章编辑预览截图:
显示异常截图:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.