tag:support.markedapp.com,2011-09-11:/discussions/problems/158791-html-export-not-including-mathjax-cdn-linkMarked: Discussion 2020-09-24T14:50:50Ztag:support.markedapp.com,2011-09-11:Comment/485611592020-08-19T07:32:27Z2020-08-19T07:32:30ZHTML export not including MathJax CDN link<div><p>Hi All,</p>
<p>this may be a silly question. When I export to HTML files that contain some maths and for which maths is displayed correctly in the preview (attached is a minimal example), the HTML does not render the formulas. I've read in the documentation that if one chooses to include MathJax in the HTML, then a CDN link will be included. My HTML does not include any Mathjax link though.</p>
<p>Is there an option to tick? I really could not find it in Markded 2.5.43 (990).</p>
<p>Thank you<br>
Daniele</p></div>d.avitabiletag:support.markedapp.com,2011-09-11:Comment/485611592020-08-19T12:52:40Z2020-08-19T12:52:40ZHTML export not including MathJax CDN link<div><p>Looks like a bug on my end. Unrelated, you should update to the latest<br>
version, there have been a lot of other improvements. I'll try to get<br>
the MathJax CDN issue fixed for the next update.</p>
<p>Thanks,<br>
Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/485611592020-08-19T13:15:32Z2020-08-19T13:20:30ZHTML export not including MathJax CDN link<div><p>Hi Brett,</p>
<p>I’ve updated, thanks. Sorry that I’m bothering you again. Using Marked2<br>
I’ve managed to create a large document for an online conference with 1000<br>
attendees (see attached) and I was hoping to display some math (the booklet<br>
must be html, and I’m receiving very positive comments). Would you be able<br>
to write the lines of html I need to make this work? I could simply copy<br>
them in the final html, and this would help me having a booklet in time for<br>
tomrrow… conference on Monday...</p></div>d.avitabiletag:support.markedapp.com,2011-09-11:Comment/485611592020-08-19T13:18:31Z2020-08-19T13:18:31ZHTML export not including MathJax CDN link<div><p>Also Brett, I've realised that posting the previous comment via email made the html file available on the forum, and this gives away credentials to the conference. Would it be possible to remove the post, or simply the attachment? I'm not managing to do that</p></div>d.avitabiletag:support.markedapp.com,2011-09-11:Comment/485611592020-08-19T13:22:02Z2020-08-19T13:22:02ZHTML export not including MathJax CDN link<div><p>I've made the discussion private, for now.</p></div>d.avitabiletag:support.markedapp.com,2011-09-11:Comment/485611592020-08-19T13:40:26Z2020-08-19T13:40:26ZHTML export not including MathJax CDN link<div><p>Deleted, but making it private will be protection as well.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/485611592020-08-19T13:43:10Z2020-08-19T13:43:10ZHTML export not including MathJax CDN link<div><p>To add the CDN link in manually, insert this inside the head tag (before the style tag, for example):</p>
<pre>
<code> <script async src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS-MML_CHTML"></script></code>
</pre>
<p>You'll probably want to adjust the config to match whatever preset you're using in Marked's Preferences->Style Mathjax setup.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/485611592020-08-20T12:18:21Z2020-08-20T12:18:21ZHTML export not including MathJax CDN link<div><p>It works, thank you!</p>
<p>Daniele Avitabile<br>
Associate Professor in Applied Mathematics<br>
Vrije Universiteit Amsterdam<br>
<a href="http://www.danieleavitabile.com">www.danieleavitabile.com</a></p></div>d.avitabiletag:support.markedapp.com,2011-09-11:Comment/485611592020-09-03T12:41:11Z2020-09-03T12:41:11ZHTML export not including MathJax CDN link<div><p>This should be fixed in the next update.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/485611592020-09-03T13:19:50Z2020-09-03T13:19:50ZHTML export not including MathJax CDN link<div><p>Excellent, thank you once again.</p>
<p>PS: the booklet of our conference mentioned explicitly in the Colophon that<br>
we’ve made it using Marked2. Thanks for producing very useful software!</p></div>d.avitabile