boolesrings / Simple-Mathjax-wordpress-plugin

15 stars 9 forks source link

Works in post excerpt, doesnt work at post itself #32

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hello!

Can someone suggest, how to make plugin work correctly.

2022-04-13-004421_834x313_scrot 2022-04-13-004435_635x175_scrot

pkra commented 2 years ago

This looks like an authoring issue -- the plugin inserts MathJax into the page and MathJax renders fine. An educated guess: the TeX string is split across multiple paragraphs which is something MathJax does not support.

I'm afraid there's not much to say without a live page. But more likely you need to contact the MathJax community, e.g., http://groups.google.com/group/mathjax-users/, (again, you'll need a link to a live page to get any meaningful help).

pkra commented 2 years ago

Closing this since it does not appear related to the plugin (you can still comment).

ghost commented 2 years ago

Thanks for you reply.

I've recreated the example with fresh head, now all is fine.

Another question is - can you, please, suggest, what limitations are - which packages are in prelude and can custom be added?

pkra commented 2 years ago

Thanks for the update.

Another question is - can you, please, suggest, what limitations are - which packages are in prelude and can custom be added?

That depends how you configured MathJax. The default value of this plugin loads the MathJax v3 tex-chtml "component" (as they call it) -- see http://docs.mathjax.org/en/latest/web/components/index.html for more information on what's include and what alternatives you have.

ghost commented 2 years ago

@pkra And to patch behavior CDN link should be updated + in theme header.php some JS code should be added?

For example, where can be checked mathtools package implementation status?

pkra commented 2 years ago

@pkra And to patch behavior CDN link should be updated + in theme header.php some JS code should be added?

You can modify the MathJax configuration and URL in the plugin settings.

For example, where can be checked mathtools package implementation status?

You'll have to ask the MathJax team.

ghost commented 2 years ago

@pkra Ok, thank you for answers and your work in general.