Browse Source

feat: update reveal.js from 4.1.0 to 4.2.1 with MathJax 3 integration (#2566)

rodrigoalcarazdelaosa 3 years ago
parent
commit
0a09b435e3
2 changed files with 2 additions and 2 deletions
  1. 1 1
      wowchemy/assets/js/wowchemy-slides.js
  2. 1 1
      wowchemy/layouts/slides/baseof.html

+ 1 - 1
wowchemy/assets/js/wowchemy-slides.js

@@ -7,7 +7,7 @@ import * as params from '@params';
 import {fixMermaid} from './wowchemy-utils';
 import {fixMermaid} from './wowchemy-utils';
 
 
 // Enable core slide features.
 // Enable core slide features.
-var enabledPlugins = [RevealMarkdown, RevealHighlight, RevealSearch, RevealNotes, RevealMath, RevealZoom];
+var enabledPlugins = [RevealMarkdown, RevealHighlight, RevealSearch, RevealNotes, RevealMath.MathJax3, RevealZoom];
 
 
 const isObject = function (o) {
 const isObject = function (o) {
   return o === Object(o) && !isArray(o) && typeof o !== 'function';
   return o === Object(o) && !isArray(o) && typeof o !== 'function';

+ 1 - 1
wowchemy/layouts/slides/baseof.html

@@ -5,7 +5,7 @@
   {{ .Scratch.Set "media_dir" $media_dir }}
   {{ .Scratch.Set "media_dir" $media_dir }}
 
 
   {{ $css := site.Data.assets.css }}
   {{ $css := site.Data.assets.css }}
-  {{ $cdn_url_reveal := "https://cdn.jsdelivr.net/npm/reveal.js@4.1.0" }}
+  {{ $cdn_url_reveal := "https://cdn.jsdelivr.net/npm/reveal.js@4.2.1" }}
   {{ $js := site.Data.assets.js }}
   {{ $js := site.Data.assets.js }}
 
 
   <meta charset="utf-8">
   <meta charset="utf-8">