Comparing version 1.9.0 to 1.9.1
@@ -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) { |
@@ -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>'); | ||
}); | ||
}); |
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
36054
365
18