Skip to content

Commit 9b444ac

Browse files
author
minjk-bl
committed
Fix Markdown app for Jupyter Notebook
1 parent b022b0c commit 9b444ac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

visualpython/js/m_apps/Markdown.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ define([
202202

203203
// CHROME: TODO: 4: marked is not loaded, before fix it comment it
204204
if (vpConfig.extensionType === 'notebook') {
205-
var marked = require('marked');
205+
var marked = require('components/marked/lib/marked');
206206
var renderer = new marked.Renderer();
207207

208208
// get block
@@ -223,7 +223,6 @@ define([
223223
});
224224
} else if (vpConfig.extensionType === 'lab') {
225225
var marked = require('marked');
226-
var renderer = new marked.Renderer();
227226

228227
// get block
229228
let block = this.getTaskType() == 'block'? this.taskItem: null;

visualpython/visualpython.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
require.config({
1616
paths: {
1717
'vp_base' : '../nbextensions/visualpython',
18-
'css' : 'vp_base/lib/require/css.min'
18+
'css' : 'vp_base/lib/require/css.min',
19+
'mathjaxutils': 'notebook/js/mathjaxutils'
1920
},
2021
config: {
2122
text: {

0 commit comments

Comments
 (0)