-
Notifications
You must be signed in to change notification settings - Fork 468
KaTeX update #3833
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
base: master
Are you sure you want to change the base?
KaTeX update #3833
Conversation
nikola/conf.py.in
Outdated
@@ -1025,10 +1025,14 @@ PRETTY_URLS = ${PRETTY_URLS} | |||
# KATEX_AUTO_RENDER = """ | |||
# delimiters: [ | |||
# {left: "$$", right: "$$", display: true}, | |||
# {left: "\\\\[", right: "\\\\]", display: true}, | |||
# {left: "\\\\[", right: "\\\\]", display: true} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# {left: "\\\\[", right: "\\\\]", display: true} | |
# {left: "\\\\[", right: "\\\\]", display: true}, |
Double backslashes are usually required when using markdown or reST, we can’t do much about it. The default value that KaTeX uses is: [
{left: "$$", right: "$$", display: true},
{left: "\\(", right: "\\)", display: false},
{left: "\\begin{equation}", right: "\\end{equation}", display: true},
{left: "\\begin{align}", right: "\\end{align}", display: true},
{left: "\\begin{alignat}", right: "\\end{alignat}", display: true},
{left: "\\begin{gather}", right: "\\end{gather}", display: true},
{left: "\\begin{CD}", right: "\\end{CD}", display: true},
{left: "\\[", right: "\\]", display: true}
] We should probably use that and add |
Added equation and align* and fixed the missing comma. |
just checking in, if anything else is needed here |
Pull Request Checklist
Description
tested by creating a demo site and adding
to the post.
Based on #3710, Fixes #3709
Review needed since I haven't used math mode in nikola before and, for example, not sure about "double " needed in input. Also, KaTeX seems to support some more environment and I'm not sure if the the setup one should only use the * version of those or the one without star or both?