-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Mathjax doesn't render in-text equation like $a+b=c$ #2256
Comments
Three points:
<!doctype html>
<html lang="en-us">
<head>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
<script>
MathJax = {
tex: {inlineMath: [['$', '$'], ['\\(', '\\)']]}
};
</script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js" id="MathJax-script" async></script>
<style type="text/css">
.main
{
text-align: center;
width: 30%;
}
</style>
</head>
<body>
<div class="main">
<p>
this is a text $a+b=c$.
$$x+y=z$$
</p>
</div>
</body>
</html> |
Thanks very much for your answer, it works. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,$a+b=c$ .$$x+y=z$$ .
I use MathJax in my HTML file, and I found it doesn't work for in-text equation, such as
For independent equation, it works well, such as
My web browser is the newest google chrome.
A minimal work example:
The text was updated successfully, but these errors were encountered: