Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for MathJax (Latex style Math equation) in blogpots markdown files #99

Closed
inarighas opened this issue Feb 6, 2023 · 2 comments

Comments

@inarighas
Copy link

inarighas commented Feb 6, 2023

Describe the bug
Hugo serve does not render properly equations written using Markdown math commands in some blog posts.

To Reproduce
$$\left(1-\sum^{p'}{i=1}\alpha_i~L^i\right)~X_t = \left(1 + \sum^q{i=1} \theta_iL^i \right)\varepsilon_t$$

Expected behavior
image

@inarighas
Copy link
Author

This answer (https://stackoverflow.com/a/68506928/9360793) worked for me. I needed to add shortcode definition in my custom layouts folder and two lines in my custom head.html.

However, using {{< mathjax/block >}} each time I want to write an equation seems heavy. It does the job perfectly though...

@artis3n
Copy link
Contributor

artis3n commented Mar 12, 2023

I think this is already included? See #83
https://hugo-profile.netlify.app/blogs/math/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants