How html-docx-js handles images
masterThe library only supports images that are inlined as base64 DATA URIs.
If your HTML contains regular image sources (e.g., <img src="/path/to/image.png">), you must convert them to base64 strings on the fly before passing the HTML to asBlob. A reference implementation for this conversion can be found in the convertImagesToBase64 function within the project's test samples.