Open Prashant15062019 opened 1 year ago
I get the same error, did you find a solution?
no but what i did was first convert it to pdf and then to html file
This is because during the processing of the image, a certain edge case involving the image's URL occurred, causing the library to treat URLs that are not base64 as base64, such as relative paths starting with /.
The solution is to replace the image's URL with an absolute path, or manually download the image, generate its base64 and use it as the src in the corresponding img element.
I see there are some src attributes that start with "/media/" in your index.txt, which cause the exception. You have to convert them into base64 manually.
An example:
index.txt
I am getting Type error while converting the HTML text
Env Node v16 OS: Mac Library version: 1.8.0