parsing `<img>` nodes, code formatting, inferring `ogImage.type` as appropriate