# MathJax does not render in draft

**URL:** <https://discuss.write.as/t/mathjax-does-not-render-in-draft/657>\
**Category:** Development\
**Created:** [June 2, 2019, 5:22pm UTC](https://discuss.write.as/t/mathjax-does-not-render-in-draft/657 "2019-06-02T17:22:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt](https://discuss.write.as/user_avatar/discuss.write.as/matt/32/2760_2.png) [@matt](https://discuss.write.as/u/matt)\
**Post date:** [June 2, 2019, 5:22pm UTC](https://discuss.write.as/t/mathjax-does-not-render-in-draft/657/1 "2019-06-02T17:22:02Z")

</div>

Opening this thread for any discussion continuing from [writefreely#70](https://github.com/writeas/writefreely/issues/70).

---

<div class="post-metadata">

**Author:** ![wiwie](https://discuss.write.as/user_avatar/discuss.write.as/wiwie/32/569_2.png) [@wiwie](https://discuss.write.as/u/wiwie)\
**Post date:** [May 9, 2020, 9:47am UTC](https://discuss.write.as/t/mathjax-does-not-render-in-draft/657/2 "2020-05-09T09:47:08Z")

</div>

Hej! This actually threw me off quite a bit when I tried writing a post with formulas and it wasn’t rendered.

For me the current solution is confusing. And also suboptimal since it’s not possible to see how the latex is going to look like without publishing the post.

What about adding a select box to the draft page where a blog can be chosen to which the draft is intended to go? Then the rendering could be performed in that context.

---

<div class="post-metadata">

**Author:** ![roboquest](https://discuss.write.as/user_avatar/discuss.write.as/roboquest/32/2832_2.png) [@roboquest](https://discuss.write.as/u/roboquest)\
**Post date:** [March 25, 2023, 9:28am UTC](https://discuss.write.as/t/mathjax-does-not-render-in-draft/657/3 "2023-03-25T09:28:55Z")

</div>

Rendering MathJax on drafts would be good since publishing a post to see how it works is suboptimal. Is there any workaround? Perhaps some specific javascript which can be loaded on the draft page manually?

---

<div class="post-metadata">

**Author:** ![TheSunCat](https://discuss.write.as/user_avatar/discuss.write.as/thesuncat/32/3532_2.png) [@TheSunCat](https://discuss.write.as/u/TheSunCat)\
**Post date:** [April 8, 2024, 10:56am UTC](https://discuss.write.as/t/mathjax-does-not-render-in-draft/657/4 "2024-04-08T10:56:32Z")

</div>

I was looking to make a diagram in my post but found Mermaid is not supported, so I went to the only other option I’m aware of which is LaTeX. However, I can’t see how my draft looks with the MathJax diagram, so I cannot really use it.

The original post on the GitHub issue suggests Including the `mathjax` template in `templates/post.tmpl`, which I could follow but I don’t want to maintain basically a local fork of WriteFreely to enable this…
