aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorteawithfruit <teawithfruit@gmail.com>2015-11-02 10:37:16 +0100
committerteawithfruit <teawithfruit@gmail.com>2015-11-02 10:37:16 +0100
commit43f0d081550e5a4a3bc86e478ecc145990ad9a40 (patch)
treefa08c86ee3117e64eca16f100f8034775773c0ea /plugin
parent9b5e16055a916bfc4165b5808faeea4e30ddccab (diff)
downloadfosdem-2018-presentation-43f0d081550e5a4a3bc86e478ecc145990ad9a40.tar
fosdem-2018-presentation-43f0d081550e5a4a3bc86e478ecc145990ad9a40.tar.gz
fixed loading
Diffstat (limited to 'plugin')
-rwxr-xr-xplugin/markdown/markdown.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js
index f4035e2..f40e2b6 100755
--- a/plugin/markdown/markdown.js
+++ b/plugin/markdown/markdown.js
@@ -4,7 +4,11 @@
* of external markdown documents.
*/
(function( root, factory ) {
- if( typeof exports === 'object' ) {
+ if (typeof define === 'function' && define.amd) {
+ root.marked = require( './marked' );
+ root.RevealMarkdown = factory( root.marked );
+ root.RevealMarkdown.initialize();
+ } else if( typeof exports === 'object' ) {
module.exports = factory( require( './marked' ) );
}
else {