-
Notifications
You must be signed in to change notification settings - Fork 88
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
[BUG]贴Latex代码的时候报错 #578
Comments
你好,本插件接入的 KaTeX 只支持有限的 LaTeX 语法:https://katex.org/ |
不是,我的本意是要贴latex的代码,不是要让KaTex去执行这个代码。有什么办法吗? |
了解了,暂时没有很好的办法,后面我新增一个 <pre class=" line-numbers language-latex"><code class=" language-latex">\begin{document}</code></pre> |
好的,感谢。 |
|
最简单的样式(可以粘到自定义CSS里试一下): code {
padding: 2px 4px;
}
pre, code {
background: #f8f8f8;
font-family: Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
font-size: .92857em;
}
pre {
margin: 2em 0;
overflow: auto;
background: none;
border: 1px solid #ddd;
}
pre code {
padding: 0;
display: block;
} |
主题的css和插件里面的css,融合到一起,有一种很奇怪的视觉效果。所以我就把主题里面的都删除了。 |
没错,我现在就是用text替代,有一个404,有些插件,我看用的是raw来表示纯文本的。这个404只要能去掉也可以用,没问题。我用joplin写笔记,用的就是text,直接复制过来也能用。 |
BUG描述 | Describe the bug
前端错误:
ParseError: KaTeX parse error: No such environment: document at position 7: \begin{̲d̲o̲c̲u̲m̲e̲n̲t̲}̲
The text was updated successfully, but these errors were encountered: