Comparing version 2.44.0 to 2.45.0
@@ -913,3 +913,2 @@ const url = require('url'); | ||
md.use(require('./plugins/appleMusic')); | ||
md.use(require('./plugins/casemates-com')); | ||
md.use(require('./plugins/emoji'), options.emoji); | ||
@@ -925,4 +924,2 @@ md.use(require('./plugins/facebook-videos')); | ||
md.use(require('./plugins/mediocre-com')); | ||
md.use(require('./plugins/mediocritee-com')); | ||
md.use(require('./plugins/meh-com')); | ||
md.use(require('./plugins/reddit')); | ||
@@ -929,0 +926,0 @@ md.use(require('./plugins/responsiveTables')); |
@@ -1,2 +0,2 @@ | ||
const regExp = /(?:https?:\/\/(?:www\.)?)?mediocre\.com\/(deals|polls)\/([-\w]+)/; | ||
const regExp = /(?:https?:\/\/(?:www\.)?)?((?:casemates|mediocre|mediocritee|meh)\.com)?\/(deals|polls)\/([-\w]+)/; | ||
@@ -24,9 +24,15 @@ module.exports = function(md) { | ||
if (matches && matches[1] && matches[2]) { | ||
var embedUrl = `https://mediocre.com/${matches.slice(1).join('/')}/embed`; | ||
var embedUrl = ''; | ||
if (matches && matches[1] && matches[2] && matches[3]) { | ||
embedUrl = `https://${matches[1]}/${matches.slice(2).join('/')}/embed`; | ||
} else if (matches && matches[2] && matches[3]) { | ||
embedUrl = `/${matches.slice(2).join('/')}/embed`; | ||
} | ||
if (embedUrl.length > 0) { | ||
textToken.content = ''; | ||
tokens[idx + 2].hidden = true; | ||
return '<iframe class="' + matches[1] + '" frameborder="0" scrolling="no" src="' + embedUrl + '"></iframe>'; | ||
return `<iframe class="${matches[2]}" frameborder="0" scrolling="no" src="${embedUrl}"></iframe>`; | ||
} | ||
@@ -39,2 +45,2 @@ } | ||
}; | ||
}; | ||
}; |
@@ -39,3 +39,3 @@ { | ||
}, | ||
"version": "2.44.0" | ||
"version": "2.45.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
1541153
28
1593