fix: Fixes for wordx (#432)

* fixes for referencing drawing blip in wordx

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>

* Added safety try-except when trying to load pillow image from a docx blob. Added explicit dependency on lxml.

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>

* Added test for word file with embedded emf images, re-generated full tests for docx, eased up dependency on lxml

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>

* Updated lxml dependency version

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>

---------

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
Co-authored-by: Maksym Lysak <mly@zurich.ibm.com>
This commit is contained in:
Maxim Lysak
2024-11-26 14:44:43 +01:00
committed by GitHub
parent d7072b4b56
commit d0a1180478
13 changed files with 1295 additions and 152 deletions

View File

@@ -0,0 +1,45 @@
Summer activities
# Swimming in the lake
Duck
<!-- image -->
Figure 1: This is a cute duckling
## Lets swim!
To get started with swimming, first lay down in a water and try not to drown:
- You can relax and look around
- Paddle about
- Enjoy summer warmth
Also, dont forget:
- Wear sunglasses
- Dont forget to drink water
- Use sun cream
Hmm, what else…
### Lets eat
After we had a good day of swimming in the lake, its important to eat something nice
I like to eat leaves
Here are some interesting things a respectful duck could eat:
| | Food | Calories per portion |
|---------|----------------------------------|------------------------|
| Leaves | Ash, Elm, Maple | 50 |
| Berries | Blueberry, Strawberry, Cranberry | 150 |
| Grain | Corn, Buckwheat, Barley | 200 |
And lets add another list in the end:
- Leaves
- Berries
- Grain