Procházet zdrojové kódy

enabled notesMatch.

Yuto Iwata před 7 roky
rodič
revize
c851d00d19

+ 4 - 4
src/client/js/util/reveal/plugins/growi-renderer.js

@@ -69,11 +69,11 @@ import GrowiRenderer from '../../GrowiRenderer';
   function createMarkdownSlide(content, options) {
     options = getSlidifyOptions(options);
 
-    // let notesMatch = content.split(new RegExp(options.notesSeparator, 'mgi'));
+    let notesMatch = content.split(new RegExp(options.notesSeparator, 'mgi'));
 
-    // if (notesMatch.length === 2) {
-    //   content = notesMatch[0] + '<aside class="notes">' + growiRenderer.process(notesMatch[1].trim()) + '</aside>';
-    // }
+    if (notesMatch.length === 2) {
+      content = notesMatch[0] + '<aside class="notes">' + growiRenderer.process(notesMatch[1].trim()) + '</aside>';
+    }
 
     // prevent script end tags in the content from interfering
     // with parsing