Skip to content
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

[建议]添加对LaTeX渲染的支持 #61

Open
Milarodvia opened this issue Jun 12, 2019 · 3 comments
Open

[建议]添加对LaTeX渲染的支持 #61

Milarodvia opened this issue Jun 12, 2019 · 3 comments

Comments

@Milarodvia
Copy link

RT

@Milarodvia
Copy link
Author

我按照网上的一些方法自己尝试了一下。如果自己安装Mathjax之类(并且配置正确)会使得博客无响应。建议作者封装一下qwq

@jyeric
Copy link

jyeric commented Feb 25, 2020

@Milarodiva 直接在/gal/layout/_partial/head.ejs后面追加

    <script>MathJax = {
        tex:{
                inlineMath: [['$', '$'], ['\\(', '\\)']]
            },
        svg:{
                fontCache: 'global'
            }
        };
    </script>
    <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
    <script type="text/javascript" id="MathJax-script" async  src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>

不就好了吗?

@stevenjoezhang
Copy link

可以安装插件: https://github.com/next-theme/hexo-filter-mathjax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants