diff --git a/IPython/html/static/notebook/js/main.js b/IPython/html/static/notebook/js/main.js index b36dcfc..db747be 100644 --- a/IPython/html/static/notebook/js/main.js +++ b/IPython/html/static/notebook/js/main.js @@ -1,6 +1,12 @@ // Copyright (c) IPython Development Team. // Distributed under the terms of the Modified BSD License. +requirejs.config({ + shim: { + 'components/highlight.js/build/highlight.pack': {exports: 'hljs'} + } +}); + require([ 'base/js/namespace', 'jquery', diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index 8586eb6..d65da64 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -11,6 +11,7 @@ define([ 'services/sessions/js/session', 'notebook/js/celltoolbar', 'components/marked/lib/marked', + 'components/highlight.js/build/highlight.pack', 'notebook/js/mathjaxutils', 'base/js/keyboard', 'notebook/js/tooltip', @@ -27,6 +28,7 @@ define([ session, celltoolbar, marked, + hljs, mathjaxutils, keyboard, tooltip,