fixed loading
This commit is contained in:
parent
9b5e16055a
commit
43f0d08155
@ -4,7 +4,11 @@
|
|||||||
* of external markdown documents.
|
* of external markdown documents.
|
||||||
*/
|
*/
|
||||||
(function( root, factory ) {
|
(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' ) );
|
module.exports = factory( require( './marked' ) );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user