-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add support for mathjax #42
Comments
@VicaYang About About how to add fomula.js to generator.js , Is the following code helpful ? |
@tea3 Thankyou! I have complete the naive version and test on my blog (e.g. Analysis-of-Covariance). But I am afraid of that will fail because of some other "dirty" case. What should I do next? |
@VicaYang Thank you for your pull-request. Please update this plugin.
|
Hi, I am using your hexo-generator-amp plugin and that works quite well. However, I notice that because the amp disallow the third party javascript, the formula I write in
.md
could not be render correctly in amp page.I notice that amp has support MathML in the beginning of 2018. So I would like to do a little change: when generate the amp page, use the regex to replace
$(.*)$
and$$(.*)$$
to<amp-mathml layout="container" data-formula="\[ (.*) \]"> </amp-mathml>
Do you know any idea how to render the formula elegantly except this method? Also, could you provide some hints or information about how and where should I modify the code? I guess I should add a
formula.js
in the filter to do the replacement and call it ingenerator.js
. Am I correct? I am willing to make a contribution!The text was updated successfully, but these errors were encountered: