@marvalt/wparser 0.1.67 → 0.1.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs
CHANGED
|
@@ -1628,10 +1628,12 @@ function getImageUrl(block) {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
/**
|
|
1630
1630
|
* Extract image attributes (alt, width, height, alignment) from block
|
|
1631
|
+
* Prioritizes Cloudflare URLs over WordPress URLs
|
|
1631
1632
|
*/
|
|
1632
1633
|
function getImageAttributes(block) {
|
|
1633
1634
|
const attrs = block.attributes || {};
|
|
1634
|
-
|
|
1635
|
+
// Use extractImageUrlWithFallback to prioritize Cloudflare URLs
|
|
1636
|
+
const url = extractImageUrlWithFallback(block);
|
|
1635
1637
|
// Extract width - can be number or string like "640px"
|
|
1636
1638
|
let width;
|
|
1637
1639
|
const widthAttr = attrs['width'];
|