Why some part of my code get red color (maybe it's syntax check or something like that?) #1943
Unanswered
ZhengYuan-Public
asked this question in
Q&A
Replies: 2 comments 1 reply
-
same question |
Beta Was this translation helpful? Give feedback.
0 replies
-
To fix this, add the following to html[data-mode=light] .highlight .err {
color: var(--code-color);
background-color: #ffffff00;
}
html:not([data-mode]) .highlight .err, html[data-mode=dark] .highlight .err {
color: var(--code-color);
background-color: #00000000;
} edit: Solutions to prevent subscripts in formulas from becoming italicized |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
How did you create the site?
Generated from
chirpy-starter
Description
I'm trying to create a template for math equations so I can speed up my writing process. There is a problem I noticed when I display my LaTeX equations as markdown code block (see pic below). I wonder why this is happening (it seems something characters became italic, so maybe it's a problem from kramdown?) and how to fix it.
Here is the text for the equation:
Here is the HTML file generated in the _site folder:
Operations you have already tried
Nothing yet.
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions