uniorg-rehype
Advanced tools
Comparing version 0.5.8 to 0.5.9
@@ -369,4 +369,6 @@ import { u } from 'unist-builder'; | ||
const imageRe = new RegExp(`\.(${options.imageFilenameExtensions.join('|')})$`, 'i'); | ||
return node.type === 'link' && node.rawLink.match(imageRe); | ||
return (node.type === 'link' && | ||
node.children.length === 0 && | ||
node.rawLink.match(imageRe)); | ||
}; | ||
//# sourceMappingURL=org-to-hast.js.map |
{ | ||
"name": "uniorg-rehype", | ||
"version": "0.5.8", | ||
"version": "0.5.9", | ||
"type": "module", | ||
@@ -58,3 +58,3 @@ "description": "uniorg plugin to transform to rehype", | ||
}, | ||
"gitHead": "b8f479783b707713534ce4d4575743d88272cf44" | ||
"gitHead": "22f8b843e89b8c8b120b66f2ee2c686c4e60b947" | ||
} |
Sorry, the diff of this file is not supported yet
70099
415