news-catalyst / google-app-scripts

a collection of scripts for tinynews google docs add-ons
https://script.google.com/a/newscatalyst.org/d/1ILURq69o3cYUy6k1n1X6HwxdMfl9xWNhILYuZxgLfeblb3IR15WCMZSj/edit
1 stars 1 forks source link

Ensure all images are parsed (word formatting issues) #369

Closed jacqui closed 2 years ago

jacqui commented 2 years ago

This doc had issues with the parsing of the main image related to MS Word formatting problems. I need to make an example of a doc that has additional images appearing as part of a normal text paragraph to ensure that all images are parsed correctly and render as expected in the published article (or page).

jacqui commented 2 years ago
  1. copied & pasted an ABC News (abc.net.au/news) article, with several images throughout the body copy, into word
  2. imported the word doc to google docs
  3. converted the ".docx" google docs hybrid to "a google doc"
  4. opened the publishing sidebar
  5. previewed: good
  6. published: good

The frontend rendered all the images, including the main image, successfully. Of course, my doc likely lacks some weird Word formatting bug that might crop up in the future, but I feel better knowing that the parsing logic can find all the images in article content that originates in a word doc on a mac, at least.