Skip to content

Commit 0179bb4

Browse files
authored
Merge pull request #3686 from gnestor/upgrade-marked
Upgrade marked
2 parents 3916803 + 2ca3684 commit 0179bb4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"jquery": "components/jquery#~3.3",
1414
"jquery-typeahead": "~2.0.0",
1515
"jquery-ui": "components/jqueryui#~1.10",
16-
"marked": "~0.3",
16+
"marked": "~0.4",
1717
"MathJax": "components/MathJax#~2.6",
1818
"moment": "~2.19.3",
1919
"preact": "https://unpkg.com/preact@^7.2.0/dist/preact.min.js",

notebook/tests/notebook/markdown.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ casper.notebook_test(function () {
9696
};
9797

9898
var codeblock = '```\nx = 1\n```'
99-
var result = '<pre><code>x = 1\n</code></pre>'
99+
var result = '<pre><code>x = 1</code></pre>'
100100
md_render_test(codeblock, result, 'Markdown code block no language');
101101

102102
codeblock = '```aaaa\nx = 1\n```'
103-
result = '<pre><code class="cm-s-ipython language-aaaa">x = 1\n</code></pre>'
103+
result = '<pre><code class="cm-s-ipython language-aaaa">x = 1</code></pre>'
104104
md_render_test(codeblock, result, 'Markdown code block unknown language');
105105

106106
function mathjax_render_test(input_string, result, message){

notebook/tests/selenium/test_markdown.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def test_markdown_cell(notebook):
2020
expected_contents = ['<h1 id="Foo">Foo<a class="anchor-link" href="#Foo">¶</a></h1>',
2121
'<p><strong>Bar</strong></p>',
2222
'<p><em>Baz</em></p>',
23-
'<pre><code>x = 1\n</code></pre>',
24-
'<pre><code class="cm-s-ipython language-aaaa">x = 1\n</code></pre>'
23+
'<pre><code>x = 1</code></pre>',
24+
'<pre><code class="cm-s-ipython language-aaaa">x = 1</code></pre>'
2525
]
2626
nb.append(*cell_text, cell_type="markdown")
2727
nb.run_all()

0 commit comments

Comments
 (0)