minicomp / ed

A Jekyll theme for minimal editions :book:
https://minicomp.github.io/ed/
Other
247 stars 129 forks source link

MathJax does not work with the theme. #30

Closed yuhouzhou closed 3 years ago

yuhouzhou commented 3 years ago

I am trying to enable writing LaTex on markdown using MathJax.

The steps to incorporate MathJax:

to head.html

This should make me able to write LaTex code between double-dollar signs in Markdown files, but through Jekyll serve, the content between double-dollar signs is ignored.

For example

---
layout: default
title: Test MathJax
author: YY
---

Before 

$$
A + B = C_a
$$

After
Screenshot 2021-04-18 at 21 39 57

Can anyone help? Thanks.

yuhouzhou commented 3 years ago

After changing the aforementioned scripts to

<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

It worked.