diff --git a/lib/marked.js b/lib/marked.js index 83974865e4..b929ffb5d4 100644 --- a/lib/marked.js +++ b/lib/marked.js @@ -889,7 +889,7 @@ Renderer.prototype.code = function(code, lang, escaped) { if (!lang) { return '
'
+ (escaped ? code : escape(code, true))
- + '\n
';
+ + '';
}
return ''
+ (escaped ? code : escape(code, true))
- + '\n
\n';
+ + '\n';
};
Renderer.prototype.blockquote = function(quote) {
diff --git a/test/new/cm_blockquotes.html b/test/new/cm_blockquotes.html
index 363f4e218a..f63e5e0067 100644
--- a/test/new/cm_blockquotes.html
+++ b/test/new/cm_blockquotes.html
@@ -32,8 +32,7 @@ > # Foo
> bar
-> baz
-
+> baz
For the same reason, we can’t omit the >
in front of subsequent lines of an indented or fenced code block:
--+foo -
foo
bar
-
+bar
> foo
@@ -104,8 +100,7 @@ Example 201
<blockquote>
<p>foo
- bar</p>
-</blockquote>
-
+</blockquote>
When including an indented code block in a block quote, remember that the block quote marker includes both the >
and a following space. So five spaces are needed after the >
:
-+code -
code
not code