diff options
author | teawithfruit <teawithfruit@gmail.com> | 2015-11-02 10:37:16 +0100 |
---|---|---|
committer | teawithfruit <teawithfruit@gmail.com> | 2015-11-02 10:37:16 +0100 |
commit | 43f0d081550e5a4a3bc86e478ecc145990ad9a40 (patch) | |
tree | fa08c86ee3117e64eca16f100f8034775773c0ea /plugin | |
parent | 9b5e16055a916bfc4165b5808faeea4e30ddccab (diff) | |
download | perl-software-in-gnu-guix-43f0d081550e5a4a3bc86e478ecc145990ad9a40.tar perl-software-in-gnu-guix-43f0d081550e5a4a3bc86e478ecc145990ad9a40.tar.gz |
fixed loading
Diffstat (limited to 'plugin')
-rwxr-xr-x | plugin/markdown/markdown.js | 6 |
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 { |