diff --git a/bower.json b/bower.json index b4b41affe..043cb6815 100644 --- a/bower.json +++ b/bower.json @@ -13,7 +13,7 @@ "jquery": "components/jquery#~3.3", "jquery-typeahead": "~2.0.0", "jquery-ui": "components/jqueryui#~1.10", - "marked": "~0.3", + "marked": "~0.4", "MathJax": "components/MathJax#~2.6", "moment": "~2.19.3", "preact": "https://unpkg.com/preact@^7.2.0/dist/preact.min.js", diff --git a/notebook/tests/notebook/markdown.js b/notebook/tests/notebook/markdown.js index 314747630..c552ae076 100644 --- a/notebook/tests/notebook/markdown.js +++ b/notebook/tests/notebook/markdown.js @@ -96,11 +96,11 @@ casper.notebook_test(function () { }; var codeblock = '```\nx = 1\n```' - var result = '
x = 1\n
' + var result = '
x = 1
' md_render_test(codeblock, result, 'Markdown code block no language'); codeblock = '```aaaa\nx = 1\n```' - result = '
x = 1\n
' + result = '
x = 1
' md_render_test(codeblock, result, 'Markdown code block unknown language'); function mathjax_render_test(input_string, result, message){ diff --git a/notebook/tests/selenium/test_markdown.py b/notebook/tests/selenium/test_markdown.py index 7ff04efea..db4a44c9b 100644 --- a/notebook/tests/selenium/test_markdown.py +++ b/notebook/tests/selenium/test_markdown.py @@ -20,8 +20,8 @@ def test_markdown_cell(notebook): expected_contents = ['

FooΒΆ

', '

Bar

', '

Baz

', - '
x = 1\n
', - '
x = 1\n
' + '
x = 1
', + '
x = 1
' ] nb.append(*cell_text, cell_type="markdown") nb.run_all()