- - HTML images just before a sublist should have a closing <img> tag added.
  - Otherwise, when rendered to Markdown again, the subsequent list items will be rendered as HTML.
- A closing tag is also necessary if the image is followed by content on a new line.
- - Similar logic isn't necessary for images converted to Markdown.
- It also isn't necessary if the next item is at the same level as the image...
- ...or if the image has text just before it.
  - See this issue for details.