hakimel / reveal.js

The HTML Presentation Framework
https://revealjs.com
MIT License
67.91k stars 16.65k forks source link

Export instructions from slides.com do not work for math #3657

Open omentic opened 4 months ago

omentic commented 4 months ago

Hello,

I tried to export some slides containing math equations from slides.com to reveal.js recently and ran into several problems.

  1. The default theme.css exported contains the following line: .reveal .sl-block[data-block-type="math"] .math-input{display:none}. This blocks math from showing at all.
  2. The default \<body> exported does not wrap literal math in \$\$ or similar. This stops them from being displayed by KaTeX.
  3. The instructions do not mention that <script src="plugin/math/math.js"></script> must be added by the rest of the plugins.
  4. The Reveal.initialize instructions do not mention that RevealMath.KaTeX must be added

I'm reporting this here because for the last two points, perhaps math could be treated as a default plugin in reveal.js? Then slides.com could wrap math in KaTeX identifiers and remove the display:none line and have math work by default.