Finish removing MathJax from Live Preview.
This commit is contained in:
@@ -39,11 +39,5 @@ var require = {
|
|||||||
<script src='js/sundown.js'></script>
|
<script src='js/sundown.js'></script>
|
||||||
<script src='js/md_sundown.js'></script>
|
<script src='js/md_sundown.js'></script>
|
||||||
<script src='js/livepreview.js'></script>
|
<script src='js/livepreview.js'></script>
|
||||||
<!--<script>(function(d,j){
|
|
||||||
j = d.createElement('script');
|
|
||||||
j.src = 'https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML';
|
|
||||||
(d.head || d.getElementsByTagName('head')[0]).appendChild(j);
|
|
||||||
}(document));
|
|
||||||
</script>-->
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -269,8 +269,6 @@ var makePreviewHtml = function () {
|
|||||||
// Update the text using feature detection to support IE.
|
// Update the text using feature detection to support IE.
|
||||||
// preview.innerHTML = text; // this doesn't work on IE.
|
// preview.innerHTML = text; // this doesn't work on IE.
|
||||||
previewSet( text );
|
previewSet( text );
|
||||||
// MathJax is loaded asynchronously.
|
|
||||||
if (typeof MathJax != 'undefined') { MathJax.Hub.Typeset( content ); }
|
|
||||||
|
|
||||||
// highlight code blocks.
|
// highlight code blocks.
|
||||||
var codeElements = preview.getElementsByTagName( 'pre' );
|
var codeElements = preview.getElementsByTagName( 'pre' );
|
||||||
|
|||||||
Reference in New Issue
Block a user