graph TD A[Load and extract content from plain text article file #236] --> B[Rewrite extracted article text into structured HTML #179] C[Load and extract image filenames and step numbers from JSON file #236] --> D{For each image} D -->|Image file| E[Load image file #174] E --> F{Resize image if necessary #228} F -->|Resized image| G[Generate img tag with src and alt text #179] G --> H[Embed img tag into corresponding step section in HTML #179] H --> D D -->|All images processed| I[Save final formatted HTML file to server #168] I --> J[Return internal and external URLs of saved HTML file #215]