Comparing version 1.5.0 to 1.5.1
@@ -57,3 +57,3 @@ var Mehdown; | ||
//Kickstarter | ||
text = text.replace(/<a href="https?:\/\/(?:www\.)?(?:kickstarter\.com\/projects\/)?(\d+)\/([\w-]+).*">https?:\/\/(?:www\.)?(?:kickstarter\.com\/projects\/)?(\d+)\/([\w-]+).*<\/a>/g, Mehdown.kickstarter('$1', '$2')); | ||
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')); | ||
@@ -60,0 +60,0 @@ // Anchors |
@@ -13,3 +13,3 @@ { | ||
}, | ||
"version": "1.5.0" | ||
"version": "1.5.1" | ||
} |
@@ -12,3 +12,3 @@ mehdown | ||
- Support for spoilers in the BBCode syntax of: [spoiler]This text will be blurred until you mouse over it[/spoiler] | ||
- Support for strikethrough using ~~strikethrough~~ syntax | ||
- Support for strikethrough using \~~strikethrough~~ syntax | ||
- Support for Twitter status embeds | ||
@@ -15,0 +15,0 @@ - Support for Vimeo and YouTube video embeds |
@@ -140,2 +140,8 @@ var assert = require('assert'); | ||
}); | ||
}); | ||
it('https://www.kickstarter.com/projects/schlock/crossing-paths-film-photography-documentary?ref=discover_rec', function() { | ||
var body = '<p><a href="https://www.kickstarter.com/projects/schlock/crossing-paths-film-photography-documentary?ref=discover_rec">https://www.kickstarter.com/projects/schlock/crossing-paths-film-photography-documentary?ref=discover_rec</a></p>'; | ||
var text = mehdown.parse(body); | ||
assert.equal(text, '<p><iframe class="kickstarter" frameborder="0" scrolling="no" src="//www.kickstarter.com/projects/schlock/crossing-paths-film-photography-documentary/widget/card.html"></iframe></p>'); | ||
}); | ||
}); |
26651
222