diff --git a/nbclassic/static/base/js/markdown.js b/nbclassic/static/base/js/markdown.js index 127967bd3..195c8e0e6 100644 --- a/nbclassic/static/base/js/markdown.js +++ b/nbclassic/static/base/js/markdown.js @@ -6,7 +6,7 @@ define([ 'base/js/utils', 'base/js/mathjaxutils', 'base/js/security', - 'components/marked/lib/marked.umd', + 'components/marked/lib/marked', 'codemirror/lib/codemirror', ], function($, utils, mathjaxutils, security, marked, CodeMirror){ "use strict"; diff --git a/nbclassic/static/base/js/namespace.js b/nbclassic/static/base/js/namespace.js index 58bfc4a9a..a791249f4 100644 --- a/nbclassic/static/base/js/namespace.js +++ b/nbclassic/static/base/js/namespace.js @@ -73,7 +73,7 @@ define(function(){ // tree jglobal('SessionList','tree/js/sessionlist'); - Jupyter.version = "0.5.3"; + Jupyter.version = "0.6.0.dev0"; Jupyter._target = '_blank'; return Jupyter; diff --git a/nbclassic/static/notebook/js/shortcuteditor.js b/nbclassic/static/notebook/js/shortcuteditor.js index 510fdb846..c856ae969 100644 --- a/nbclassic/static/notebook/js/shortcuteditor.js +++ b/nbclassic/static/notebook/js/shortcuteditor.js @@ -5,7 +5,7 @@ define([ "jquery", "notebook/js/quickhelp", "base/js/dialog", - "components/marked/lib/marked.umd" + "components/marked/lib/marked" ], function ( $, QH, diff --git a/nbclassic/static/tree/js/notebooklist.js b/nbclassic/static/tree/js/notebooklist.js index d8a29bbd6..696ff8552 100644 --- a/nbclassic/static/tree/js/notebooklist.js +++ b/nbclassic/static/tree/js/notebooklist.js @@ -11,7 +11,7 @@ define([ 'base/js/keyboard', 'moment', 'bidi/bidi', - 'components/marked/lib/marked.umd' + 'components/marked/lib/marked' ], function($, IPython, utils, i18n, dialog, events, keyboard, moment, bidi, marked) { "use strict"; diff --git a/setupbase.py b/setupbase.py index b4ce9ce05..80f28b6eb 100644 --- a/setupbase.py +++ b/setupbase.py @@ -145,7 +145,7 @@ def find_package_data(): pjoin(components, "jquery-ui", "dist", "jquery-ui.min.js"), pjoin(components, "jquery-ui", "dist", "themes", "smoothness", "jquery-ui.min.css"), pjoin(components, "jquery-ui", "dist", "themes", "smoothness", "images", "*"), - pjoin(components, "marked", "lib", "marked.umd.js"), + pjoin(components, "marked", "lib", "marked.js"), pjoin(components, "react", "react.production.min.js"), pjoin(components, "react", "react-dom.production.min.js"), pjoin(components, "requirejs", "require.js"), @@ -417,6 +417,8 @@ def run(self): cwd=repo_root, env=env ) + # Copy the UMD files to their JavaScript equivalent to ensure correct loading. + shutil.copyfile(pjoin(self.bower_dir, "marked", "lib", "marked.umd.js"), pjoin(self.bower_dir, "marked", "lib", "marked.js")) except OSError as e: print("Failed to run bower: %s" % e, file=sys.stderr) print("You can install js dependencies with `npm install`", file=sys.stderr)