remark-images
Advanced tools
Comparing version 0.1.0 to 0.1.1
const isUrl = require('is-url') | ||
const visit = require('unist-util-visit') | ||
const isImgUrl = str => /\.(svg|png|jpg|jpeg)/.test(str) | ||
module.exports = () => (tree, file) => | ||
@@ -8,3 +10,3 @@ visit(tree, 'text', node => { | ||
if (!isUrl(text)) { | ||
if (!isUrl(text) || !isImgUrl(text)) { | ||
return | ||
@@ -11,0 +13,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"author": "John Otander", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"main": "index.js", | ||
@@ -8,0 +8,0 @@ "files": [ |
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
850
13