carpentries-incubator / machine-learning-novice-python

Introduction to Machine Learning with Python
https://carpentries-incubator.github.io/machine-learning-novice-python/
Other
4 stars 9 forks source link

Add mathjax support for math formula #2

Closed tompollard closed 2 years ago

tompollard commented 2 years ago

Currently, math formula added to page content in latex are not properly rendered. For example, adding $$y = \frac{1}{2}$$ to an _episodes file will be rendered as:

Screen Shot 2021-10-11 at 03 34 44

This pull request adds mathjax support for rendering math. After the change, the same chunk will be rendered as:

Screen Shot 2021-10-11 at 03 34 03

fmichonneau commented 2 years ago

Hi @tompollard, the latest version of the lesson template includes KaTeX. If you'd like me to create a pull request with the latest version let me know!

tompollard commented 2 years ago

hi @fmichonneau, thanks for your quick review!

If you'd like me to create a pull request with the latest version let me know!

It sounds like pulling in the latest version of the template would also fix https://github.com/carpentries-incubator/machine-learning-novice-python/pull/1?

If you don't mind creating the pull request then I would appreciate your help, but I'm happy to give it a try if you prefer.

tompollard commented 2 years ago

Fixed in https://github.com/carpentries-incubator/machine-learning-novice-python/pull/5