Skip to content

Fix MathJax rendering on iOS Safari#26

Merged
walkccc merged 2 commits intowalkccc:masterfrom
JeffreyCA:fix-ios
Oct 24, 2018
Merged

Fix MathJax rendering on iOS Safari#26
walkccc merged 2 commits intowalkccc:masterfrom
JeffreyCA:fix-ios

Conversation

@JeffreyCA
Copy link
Contributor

The issue is described here with the recommended fix here.

So the problem was that iOS Safari automatically converts certain long integers into phone numbers as hyperlinks which breaks MathJax. The recommended workaround solution is to add the following HTML meta tag to every page:

<meta name="format-detection" content="telephone=no">

Which I did by overriding the default material theme and added the tag above.

Now if you go here on iOS Safari it renders correctly.

@JeffreyCA
Copy link
Contributor Author

Secondly, I added the site/ directory to .gitignore because every file shows up as changed in Git every time I make a change and build it. Also it's good practice to leave generated files out 😃.

@walkccc
Copy link
Owner

walkccc commented Oct 24, 2018

This is awesome! Thank you very much!

@walkccc walkccc merged commit b3dce28 into walkccc:master Oct 24, 2018
@walkccc walkccc added the enhancement New feature or request label Apr 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants