djplaner / word-to-canvas-module

A userscript that will create a Canvas Module (including all module items) from a Word document (using special styles)
https://djplaner.github.io/word-to-canvas-module/
MIT License
0 stars 0 forks source link

Some canvas images not being picked up - in tables #52

Closed djplaner closed 2 years ago

djplaner commented 2 years ago

Global Lawyer has Canvas Images in Pictures within Tables. These aren't being picked up

djplaner commented 2 years ago

Detect

Find image links appears to be getting the embedded images

But maybe reseting imageLinks so it only contains 2 for some reason NOPE

What's the difference in the HTML between images working and notworking?

The problem is that some of the early images aren't being picked up -

Not workign

These are still encoded. So is the problem that it's not being picke dup earlier??


<span class="canvasImage">
&amp;nbsp;&lt;img alt="Badge 1" height="127" src="Monday_8_Novemb_1.png" width="127"/&gt;&amp;nbsp;<br>
</span>```

*Working*

``
`<span class="canvasImage">
&nbsp;<img alt="Timeline Description automatically generated" src="Monday_8_Novemb_8.png" style="width: 95%; margin-bottom: 1em;">&nbsp;
</span>

### What's going on earlier
djplaner commented 2 years ago

PEBKAC - don't use Canvas Image style when it should be Blackboard Image