# HTML export not including MathJax CDN link

#### d.avitabile

19 Aug, 2020 07:32 AM

Hi All,

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.

Is there an option to tick? I really could not find it in Markded 2.5.43 (990).

Thank you
Daniele

1. Support Staff Posted by Brett on 19 Aug, 2020 12:52 PM

Looks like a bug on my end. Unrelated, you should update to the latest
version, there have been a lot of other improvements. I'll try to get
the MathJax CDN issue fixed for the next update.

Thanks,
Brett

2. Posted by d.avitabile on 19 Aug, 2020 01:15 PM

Hi Brett,

I’ve updated, thanks. Sorry that I’m bothering you again. Using Marked2
I’ve managed to create a large document for an online conference with 1000
attendees (see attached) and I was hoping to display some math (the booklet
must be html, and I’m receiving very positive comments). Would you be able
to write the lines of html I need to make this work? I could simply copy
them in the final html, and this would help me having a booklet in time for
tomrrow… conference on Monday...

3. Posted by d.avitabile on 19 Aug, 2020 01:18 PM

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

4. Posted by d.avitabile on 19 Aug, 2020 01:22 PM

I've made the discussion private, for now.

5. Support Staff Posted by Brett on 19 Aug, 2020 01:40 PM

Deleted, but making it private will be protection as well.

6. Support Staff Posted by Brett on 19 Aug, 2020 01:43 PM

To add the CDN link in manually, insert this inside the head tag (before the style tag, for example):

 <script async src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS-MML_CHTML"></script>


You'll probably want to adjust the config to match whatever preset you're using in Marked's Preferences->Style Mathjax setup.

7. Posted by d.avitabile on 20 Aug, 2020 12:18 PM

It works, thank you!

Daniele Avitabile
Associate Professor in Applied Mathematics
Vrije Universiteit Amsterdam
www.danieleavitabile.com

8. Support Staff Posted by Brett on 03 Sep, 2020 12:41 PM

This should be fixed in the next update.

9. Brett closed this discussion on 03 Sep, 2020 12:41 PM.

10. d.avitabile re-opened this discussion on 03 Sep, 2020 01:19 PM

11. Posted by d.avitabile on 03 Sep, 2020 01:19 PM

Excellent, thank you once again.

PS: the booklet of our conference mentioned explicitly in the Colophon that
we’ve made it using Marked2. Thanks for producing very useful software!

12. Brett closed this discussion on 24 Sep, 2020 02:50 PM.

Comments are currently closed for this discussion. You can start a new one.

# Keyboard shortcuts

### Generic

? Show this help Blurs the current field

### Comment Form

r Focus the comment reply box Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

## Recent Discussions

 26 Nov, 2020 05:14 PM Marked 2 Scrivener Preview stoped working after Big Sur update 21 Nov, 2020 10:12 PM Big Sur Citeproc: error running Preprocessor 18 Nov, 2020 07:49 PM Issues with the rendering of numbered latex equations 15 Nov, 2020 08:22 PM Markdown from Ulysses Rendered Improperly 13 Nov, 2020 05:51 PM Bear - marked 2 preview is disabled

## Recent Articles

 Using Ulysses with Marked Fenced code blocks inside indented code blocks Using JavaScript in Marked Custom CSS: Writing custom CSS for Marked License code has already been utilized