Comparing version 1.0.0 to 1.0.1
@@ -19,2 +19,9 @@ var Mehdown; | ||
// Cleanup line breaks inside <blockquote> elements | ||
text = text.replace(/<blockquote><br \/>/gi, '<blockquote>'); | ||
text = text.replace(/<br \/><\/blockquote>/gi, '</blockquote>'); | ||
text = text.replace(/<blockquote>([^)]+)<\/blockquote>/gi, function(t) { | ||
return t.replace(/<br \/>/gi, ' '); | ||
}); | ||
// Cleanup line breaks around <li> elements | ||
@@ -21,0 +28,0 @@ text = text.replace(/<br \/><li>/g, '<li>'); |
@@ -13,3 +13,3 @@ { | ||
}, | ||
"version": "1.0.0" | ||
"version": "1.0.1" | ||
} |
@@ -6,2 +6,4 @@ mehdown | ||
[![NPM](https://nodei.co/npm/mehdown.png)](https://nodei.co/npm/mehdown/) | ||
It adds the following features to Markdown: | ||
@@ -8,0 +10,0 @@ - Newline support |
@@ -19,2 +19,7 @@ var assert = require('assert'); | ||
}); | ||
it('<blockquote>', function() { | ||
var text = mehdown.parse('<blockquote>\n<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit\nLorem ipsum dolor sit amet, consectetur adipisicing elit\nLorem ipsum</p>\n\n<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit\nLorem ipsum dolor sit amet, consectetur adipisicing elit</p>\n</blockquote>'); | ||
assert.equal(text, '<blockquote><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit Lorem ipsum dolor sit amet, consectetur adipisicing elit Lorem ipsum</p>\n\n<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit Lorem ipsum dolor sit amet, consectetur adipisicing elit</p></blockquote>'); | ||
}); | ||
}); | ||
@@ -21,0 +26,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20878
154
16