diff --git a/lib/marked.js b/lib/marked.js
index e910ed2d0c..9d7c1555f3 100644
--- a/lib/marked.js
+++ b/lib/marked.js
@@ -27,8 +27,8 @@ var block = {
+ '|\\n*' // (4)
+ '|\\n*' // (5)
+ '|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)' // (6)
- + '|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$)' // (7) open tag
- + '|(?!script|pre|style)[a-z][\\w-]*\\s*>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$)' // (7) closing tag
+ + '|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)' // (7) open tag
+ + '|(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)' // (7) closing tag
+ ')',
def: /^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,
table: noop,
diff --git a/test/new/html_no_new_line.html b/test/new/html_no_new_line.html
new file mode 100644
index 0000000000..a82e4a1caa
--- /dev/null
+++ b/test/new/html_no_new_line.html
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/test/new/html_no_new_line.md b/test/new/html_no_new_line.md
new file mode 100644
index 0000000000..a82e4a1caa
--- /dev/null
+++ b/test/new/html_no_new_line.md
@@ -0,0 +1 @@
+
\ No newline at end of file