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

Katex doesn't work with .md files #68

Open
jbirnick opened this issue Apr 19, 2020 · 4 comments
Open

Katex doesn't work with .md files #68

jbirnick opened this issue Apr 19, 2020 · 4 comments

Comments

@jbirnick
Copy link

Hugo Version: v0.68.3/extended linux/amd64

Inline Katex doesn't work with .md files. However, if you just rename them to .mmark it works. But support for .mmark will be removed. What is the problem and how to fix it?

@cntrump
Copy link
Owner

cntrump commented Apr 19, 2020

I tested and it is ok.

  • cd themes/hugo-notepadium/exampleSite

  • rename math-typesetting.mmark to math-typesetting.md

  • and remove markup: mmark

  • run hugo server --themesDir ../..

@jbirnick
Copy link
Author

No it doesn't. I did exactly what you said. Please notice that the supposed to be inline math is now a block math. That's the issue. Inline math gets layoutet as block math. Test for example this line:

Let be $$x \in \R$$ and then ...

Then you will see the issue.

@cntrump
Copy link
Owner

cntrump commented Apr 20, 2020

updated and try ...

@jbirnick
Copy link
Author

jbirnick commented Apr 20, 2020

Thank you a lot!

Now it works in the post. The funny thing is that in the preview at the homepage it still views it as block-comment. Maybe you can fix that too, but it's not such a big problem.

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