Closed joshuahhh closed 1 year ago
I was able to hack a solution to this on top of my #34 hack:
async function rewriteImagePaths(ast) {
visitNodes(ast, node => {
if (node.name === 'image') {
setValueProperty(node, 'src', '../../' + getPropertyValue(node, 'src').replace(/%20/g, ' '));
}
});
return ast;
}
on account of the percent symbols, I reckon!