tidy-markdown
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -30,3 +30,3 @@ // Generated by CoffeeScript 1.10.0 | ||
buffer = ''; | ||
while (null !== (chunk = process.stdin.read())) { | ||
while ((chunk = process.stdin.read()) !== null) { | ||
buffer += chunk; | ||
@@ -33,0 +33,0 @@ } |
@@ -135,4 +135,4 @@ // Generated by CoffeeScript 1.10.0 | ||
} | ||
} else if (!title && url !== '' && content === url) { | ||
return "<" + url + ">"; | ||
} else if (!title && url !== '' && (content === url || content === url.replace(/^mailto:/, ''))) { | ||
return "<" + content + ">"; | ||
} else if (title) { | ||
@@ -207,3 +207,3 @@ return "[" + content + "](" + url + " \"" + title + "\")"; | ||
} | ||
return delimitCode((language || '') + "\n" + content, '```'); | ||
return delimitCode((language || '') + "\n" + content + "\n", '```'); | ||
} | ||
@@ -210,0 +210,0 @@ }, { |
@@ -226,7 +226,4 @@ // Generated by CoffeeScript 1.10.0 | ||
var content, converter, whitespace; | ||
content = getContent(node); | ||
content = getContent(node).trim(); | ||
converter = node._converter; | ||
if ('pre' !== node.tagName && 'pre' !== node.parentNode.tagName) { | ||
content = content.trim(); | ||
} | ||
if (converter.surroundingBlankLines) { | ||
@@ -233,0 +230,0 @@ whitespace = { |
{ | ||
"name": "tidy-markdown", | ||
"description": "Fix ugly markdown.", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"author": "Sean Lang", | ||
@@ -6,0 +6,0 @@ "bin": { |
70805
961