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.9.0 to 1.9.1

9

lib/index.js

@@ -91,8 +91,5 @@ var Mehdown;

//Kickstarter
// Kickstarter
text = text.replace(/<a href="https?:\/\/(?:www\.)?(?:kickstarter\.com\/projects\/)?([\w-]+)\/([\w-]+).*">https?:\/\/(?:www\.)?(?:kickstarter\.com\/projects\/)?([\w-]+)\/([\w-]+).*<\/a>/g, Mehdown.kickstarter('$1', '$2'));
// Archive.org games
text = text.replace(/\[archiveorg (\w+).*\]/g, Mehdown.archiveOrg('$1'));
// Images

@@ -145,6 +142,2 @@ var imgRegExp = /<a href="(https?:\/\/[-\w%\/\.]+\.(?:jpg|jpeg|gif|png)(?:\?[-\+=&;%@\.\w]+)?)">\1<\/a>/gi;

Mehdown.archiveOrg = function(entry) {
return '<iframe allowfullscreen class="archiveorg" frameborder="0" mozallowfullscreen="true" src="//archive.org/embed/' + entry + '" webkitallowfullscreen="true"></iframe>';
};
Mehdown.header = function(suffix) {

@@ -151,0 +144,0 @@ function toSlug(value) {

2

package.json

@@ -13,3 +13,3 @@ {

},
"version": "1.9.0"
"version": "1.9.1"
}

@@ -16,4 +16,3 @@ mehdown

- Support for opening external links in a new browser tab/window
- Support for the The Internet Archive Software Collection in their embed format: [archiveorg PacMan1981Atari width=560 height=384 frameborder=0 webkitallowfullscreen=true mozallowfullscreen=true]
[![Build Status](https://travis-ci.org/mediocre/mehdown.png?branch=master)](https://travis-ci.org/mediocre/mehdown)

@@ -254,8 +254,1 @@ var assert = require('assert');

});
describe('archive.org embeds', function() {
it('[archiveorg arcade_3stooges width=560 height=384 frameborder=0 webkitallowfullscreen=true mozallowfullscreen=true]', function() {
var text = mehdown.parse('<p>[archiveorg arcade_3stooges width=560 height=384 frameborder=0 webkitallowfullscreen=true mozallowfullscreen=true]</p>');
assert.equal(text, '<p><iframe allowfullscreen class="archiveorg" frameborder="0" mozallowfullscreen="true" src="//archive.org/embed/arcade_3stooges" webkitallowfullscreen="true"></iframe></p>');
});
});
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