You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$$\begin{darray}{cc}
a & b \\
c & d
\end{darray}$$
outputs are:
\begin{array}{cc} a & b
c & d \end{array}
But it works well in test.html:
<!DOCTYPE html>
<!-- KaTeX requires the use of the HTML5 doctype. Without it, KaTeX may not render properly -->
<html>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.0/dist/katex.min.css" crossorigin="anonymous">
<!-- The loading of KaTeX is deferred to speed up page rendering -->
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.0/dist/katex.min.js" crossorigin="anonymous"></script>
<!-- To automatically render math in text elements, include the auto-render extension: -->
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.0/dist/contrib/auto-render.min.js" crossorigin="anonymous"
onload="renderMathInElement(document.body);"></script>
</head>
<body>
$$
\begin{darray}{cc}
a & b \\
c & d
\end{darray}
$$
<script>
renderMathInElement(
document.getElementById("test"),
{
delimiters: [
{left: "$$", right: "$$", display: true},
{left: "\\[", right: "\\]", display: true},
{left: "$", right: "$", display: false},
{left: "\\(", right: "\\)", display: false}
]
}
);
</script>
</body>
</html>
Thanks!
The text was updated successfully, but these errors were encountered:
This problem is caused by the syntax conflict between Markdown and LaTeX. To solve that, you need to add some backslashes to escape some characters. For example:
_ -> \_
\\ -> \\\\
$$\begin{darray}{cc} a & b \\\\ c & d\end{darray}$$
Also, make sure you have enabled KaTeX in that post’s Front Matter (katex: true or katex = true) and added the following code in config.toml:
Hi reuixiy,
meme is so cool for me, thank guys!
But there is an issue about KaTeX in my markdown(I'm New At Web...) with meme lastest version:
outputs are:
But it works well in test.html:
Thanks!
The text was updated successfully, but these errors were encountered: