liffiton / dokuwiki-plugin-mathjax

MathJax plugin for DokuWiki
https://www.dokuwiki.org/plugin:mathjax
12 stars 11 forks source link

MathJax plugin disabled in presentation mode? #18

Closed j0hannes closed 10 years ago

j0hannes commented 10 years ago

I think I had already opened this issue but can't find it in the tracker ...

Mathjax doesn't render when used in presentation mode (plugins S5 and revealjs), except for one configuration: revealjs in Safari!

See this page in S5 presentation mode and revealjs presentation mode.

My question now is: What needs to be fixed to bring the Safari experience to all browsers?

liffiton commented 10 years ago

Both of those plugins override/ignore the javascript that the MathJax plugin adds to a regular dokuwiki page. For example, in the s5 plugin, this writes its own HEAD section for the slideshow page, ignoring anything else that dokuwiki or another plugin might have put there. The revealjs plugin basically does the same.

The revealjs plugin actually includes mathjax itself, whether you have the mathjax dokuwiki plugin or not. I'm not sure why mathjax works within revealjs for only Safari, but that is an issue with the revealjs plugin if anything.

So I don't think there's anything I can do in this plugin to fix this; both revealjs and s5 overwrite any scripts other plugins might add to a page.

neuralyzer commented 10 years ago

Hello,

the revealjs plugin uses a rather crude workaround at the moment. Mathjax does work but it is loaded directly from the MathJax CDN. On Firefox you might get a warning in the URL bar about Firefox having blocked content that is not secure. If you click on the shield symbol and allow to load that content MathJax should work. However, it won't use the configuration settings from the Dokuwiki MathJax plugin. I guess it would be nice to integrate the mathjax-plugin in the presentation plugins.

@j0hannes: The revealjs presentation with MathJax works for me on your wiki in Firefox after allowing the non-secure content.