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

Hoping add math typo typing feature. #33

Closed
ghost opened this issue Dec 25, 2020 · 2 comments
Closed

Hoping add math typo typing feature. #33

ghost opened this issue Dec 25, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 25, 2020

Hi @joway your theme is excellent and it seems doesn't support math typo like Latex or "tex in markdown", at least in my site
when I add math typo it shows incorrectly as for the picture below ...

So I want to know how to add the feature to support the math typing like add MathJax by myself, and that's will be the best if you can add that in the future.

Thanks.

image

@expatjedi
Copy link

It's very easy to integrate KaTex into hugo. I just tested and it works.

Remember the update katex version to 0.12.0 in partials math.html file and remove the markup type since mmark is deprecated and will be removed in a future release.

Short Tutorial: https://dawnarc.com/2019/09/hugokatex-intergration/

@ghost
Copy link
Author

ghost commented Jan 14, 2021

It's very easy to integrate KaTex into hugo. I just tested and it works.

Remember the update katex version to 0.12.0 in partials math.html file and remove the markup type since mmark is deprecated and will be removed in a future release.

Short Tutorial: https://dawnarc.com/2019/09/hugokatex-intergration/

Thank you very much, It really works well.

In addition, the math.html script in the tutorial is useless, even when I changed the KaTex version to 0.12.0, the correct script
is: https://katex.org/docs/autorender.html

And in Hugo, it seems analyse the .yaml type file, as for the tutorial, it shows the math= "true" , the hugo will show an error like failed to unmarshal YAML: yaml: line 6: could not find expected ':'

So I changed it to math: true in the title, it finally works.

image

@ghost ghost closed this as completed Jan 14, 2021
This issue was closed.
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

1 participant