Last active
August 17, 2021 22:42
-
-
Save ZodmanPerth/ce90e1ac74276f5e30f0905c71a91c5d to your computer and use it in GitHub Desktop.
Hexo Icarus Mathjax GitHub Gist issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hexo Icarus Mathjax GitHub Gist issue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a demonstration for Hexo Theme Icarus showing how Mathjax is incorrectly formatting the content | |
// of an embedded GitHub Gist file. | |
// See https://github.com/ppoffice/hexo-theme-icarus/issues/915 | |
// | |
// The issue has a resolution: surround the Gist script tag with a div containing ignore classes for all | |
// MathJax preprocessors: | |
// <div class="tex2jax_ignore asciimath2jax_ignore"> | |
// <script src="https://gist.github.com/ZodmanPerth/ce90e1ac74276f5e30f0905c71a91c5d.js?file=Sample.js"></script> | |
// </div> | |
var linkAttributes = ` target="_blank"` | |
linkAttributes = ` target="_blank" rel="external"` | |
var ClassText = `class="gallery-item"` | |
var StyleText = `color:#7a7a7a` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment