Commit Graph

32 Commits (e3fb1655ad7e966f4856769b9a9b9b10ec4f6640)

Author SHA1 Message Date
Eric Wieser 470aa76894
Allow the skipHtmlTags option to be overriden
The previous logic here was backwards, and did not allow the user to override `options` in the mathjax config structure.
This makes it match how the `startup` and `tex` fields are merged.
2022-03-16 16:26:27 +00:00
hakimel 35b67a9f5b katex math rendering; fix broken 2477 delimiter, compatibility with external markdown #2559 2021-11-10 10:20:25 +01:00
hakimel 0ea4193001 add @burgerga's math plugin with MathJax2, MathJax3 and KaTeX support #2559 2021-10-28 13:41:57 +02:00
Hakim El Hattab 395356a0b1 update deps & drop node/gulp-sass in order to support node 16 #2959 2021-05-19 21:48:42 +02:00
Hakim El Hattab faa8b56e2a dependency upgrades 2020-08-19 10:33:36 +02:00
Hakim El Hattab 84b52984cd update dependencies 2020-05-19 18:44:40 +02:00
Hakim El Hattab fb22716ddf move built plugin files from /dist/plugin/ to /plugin/<name>/ 2020-05-18 14:41:56 +02:00
Hakim El Hattab 60cd098c8d .esm suffix for module bundle, marked/highlight.js are installed via npm 2020-05-04 10:39:37 +02:00
Hakim El Hattab b92d16f48d make plugins work with multiple presentations on same page 2020-04-23 10:54:48 +02:00
Hakim El Hattab e58502b3fb tweak plugin initialization to enable multi-instance plugins 2020-04-17 14:10:56 +02:00
Hakim El Hattab d9690462e0 add 'plugins' config option, new way of registering es5 plugins 2020-04-17 09:47:03 +02:00
Hakim El Hattab a55cd813be convert plugins to ES modules, transpile es5 versions backwards compatibility 2020-04-15 10:23:51 +02:00
Hakim El Hattab 9522357349 changes to plugin api; registerPlugin only accepts plugin instance, instance exposes .id 2020-04-08 13:05:28 +02:00
Hakim El Hattab 855cc82d76 Reveal.add/remveEventListener -> Reveal.on/off 2020-04-07 09:05:56 +02:00
Hakim El Hattab 6410ed15aa support for plugins where the init method doesn't return a Promise 2019-03-14 14:52:59 +01:00
Hakim El Hattab 5301a9ea03 more forgiving code highlight line number format, add Promise polyfill 2019-03-14 13:05:10 +01:00
Hakim El Hattab c40e9819a2 highlight, math, notes and zoom plugins now register via Reveal.registerPlugin 2019-03-04 14:32:38 +01:00
Benjamin Tan b2d532ea28 Allow users to customise MathJax options.
Ref. #1856, #2006, #2045.

This is a more open approach to allow customisation of all MathJax options instead of select options only.
2018-02-08 20:54:21 +08:00
John MacFarlane 773569b4a2 Allow tex2jax options to be passed into math plugin.
Closes #2026.

This does not change the default behavior of the math plugin,
but it allows $ delimiters to be disabled (which is usually
what you want, since otherwise normal uses of $ for currency get
treated as math delimiters).

To use:

    Reveal.initialize({
      math: {
        tex2jax: { inlineMath: [['\\(','\\)']],
                   skipTags: ['script','noscript','style',
                              'textarea','pre'] }
            },
      etc.
      });
2017-11-29 21:57:29 -08:00
Christian Lawson-Perfect 9495b64d2c replace cdn.mathjax.org with cdnjs
cdn.mathjax.org is shutting down: https://www.mathjax.org/cdn-shutting-down/

This changes the default MathJax URL in the math plugin, as well as
references in README.md and test/examples/math.html
2017-04-05 12:48:56 +01:00
Hakim El Hattab 852fea4133 Merge pull request #1205 from gothma/mathjax-md
Allow tex parsing in <code> tags
2015-07-07 11:50:08 +02:00
Martin Goth 0cb4d10504 Allow tex parsing in <code> tags
Just using $ as delimiter in markdown document fails since the markdown
parser unknown to the dollar syntax will try to interpret underscores.
Putting the $ delimented formula in backticks will cause the markdown
parser to put the tex-code with the $ delimiters into a code block.
The texcode will then be unchanged. This patch allows for mathJax to
interpret and automagically display the tex-formulas.
2015-04-16 13:24:23 +02:00
Hakim El Hattab f032df8f13 default to https mathjax #1103 2015-01-20 09:11:09 +01:00
Hakim El Hattab c9853233ae rename math plugin config option 2013-08-18 14:13:55 -04:00
Hakim El Hattab 2bed5833ca remove pointless .call() 2013-08-16 09:30:22 -04:00
Hakim El Hattab b17e285164 mathjax plugin updates #531 2013-08-13 08:53:41 -04:00
Hakim El Hattab e7ee8858a2 remove unused code 2013-08-13 00:10:14 -04:00
Hakim El Hattab 3e23b8b690 make mathjax host a config option, revamp script loading, fragment examples #531 2013-08-12 23:15:19 -04:00
Hakim El Hattab 3901904057 comments and failesafes for #531 2013-08-12 23:01:35 -04:00
Hakim El Hattab 69f7c0c693 updates to mathjax plugin, incl more examples #531 2013-08-12 22:42:14 -04:00
Hakim El Hattab 9984cb1f21 limit scope of mathjax rerender #531 2013-08-12 09:27:23 -04:00
Hakim El Hattab 1748a29ff3 first version of mathjax plugin #531 2013-08-12 09:21:38 -04:00