diff --git a/src/index.js b/src/index.js index 672d057..ea6818a 100644 --- a/src/index.js +++ b/src/index.js @@ -12,7 +12,7 @@ module.exports = async ({ markdownAST }, pluginOptions) => { if (title !== convertTitle) { return } - if (url.indexOf(marketplace) === -1) { + if (url.indexOf(marketplace.replace("www.", "")) === -1) { return } @@ -56,7 +56,7 @@ const getHTML = (title, imageUrl, url, marketplace) => {
${title}
-
${marketplace}
+
${marketplace.replace("www.", "")}
${title}-image