Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mehdown

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mehdown - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

7

lib/index.js

@@ -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>');

2

package.json

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc