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

如果数学公式太长,移动版显示会超过页面 #541

Open
NChilton opened this issue Jun 29, 2022 · 8 comments
Open

如果数学公式太长,移动版显示会超过页面 #541

NChilton opened this issue Jun 29, 2022 · 8 comments
Labels
Help Wanted Extra attention is needed

Comments

@NChilton
Copy link

NChilton commented Jun 29, 2022

开启mathjax,且tags选项为amsall,则在移动端,太长公式会超出页面,如下所示
tags选项为ams或all

如果tags选项为none,则在移动端显示正常,如下所示
tags选项为none

@welcome
Copy link

welcome bot commented Jun 29, 2022

Thanks for opening this issue, maintainers will get back to you as soon as possible!

@NChilton
Copy link
Author

@stevenjoezhang
Copy link
Member

这个是已知问题,并且有些难以解决,见 https://github.com/next-theme/hexo-filter-mathjax#known-issues

@uyoufu
Copy link

uyoufu commented Jul 9, 2022

可以使用 split 环境

$$
\begin{split}
公式
\end{split}
$$

@stevenjoezhang stevenjoezhang added the Help Wanted Extra attention is needed label Aug 20, 2022
@next-theme next-theme deleted a comment from RanchoSMAuth335 Jan 14, 2023
@next-theme next-theme deleted a comment from RanchoSMAuth335 Jan 14, 2023
@wqf31415
Copy link

文章中插入svg图片,如果较宽也会导致相同问题,用老版本的没这个问题

@stevenjoezhang
Copy link
Member

用 img 标签应该可以缩放?如果是直接插入 svg 标签可能会不一样

@wqf31415
Copy link

直接用svg标签插入的图片会有问题

@stevenjoezhang
Copy link
Member

可以换成 img,src 可以把 svg 换成 base64 然后内联。我印象中老版本也没有专门处理过这个问题😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants